opennlp.tools.postag
Class POSEventGenerator

java.lang.Object
  extended by opennlp.model.AbstractEventStream
      extended by opennlp.tools.postag.POSEventGenerator
All Implemented Interfaces:
opennlp.model.EventStream

Deprecated.

@Deprecated
public class POSEventGenerator
extends opennlp.model.AbstractEventStream

Allows individual pos-tag events to be created and then accessed via the event stream interface. One should use this generator by adding a small number of events (perhaps a sentence worth) and then removing them or the storage of events will require a large amount of memory.


Constructor Summary
POSEventGenerator()
          Deprecated. Creates an event generator with a default context generator.
POSEventGenerator(POSContextGenerator pcg)
          Deprecated. Creates an event generator with the specified context generator.
 
Method Summary
 void addEvent(String[] tokens, String[] tags, int index)
          Deprecated. Adds an event for the tag in the tags array and token in the token array at teh specified index.
 void addEvents(String[] tokens, String[] tags)
          Deprecated. Adds events for each tag/token of the specified arrays.
 boolean hasNext()
          Deprecated.  
 opennlp.model.Event next()
          Deprecated.  
 
Methods inherited from class opennlp.model.AbstractEventStream
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSEventGenerator

public POSEventGenerator(POSContextGenerator pcg)
Deprecated. 
Creates an event generator with the specified context generator.

Parameters:
pcg - The context generator for this event stream.

POSEventGenerator

public POSEventGenerator()
Deprecated. 
Creates an event generator with a default context generator.

Method Detail

addEvent

public void addEvent(String[] tokens,
                     String[] tags,
                     int index)
Deprecated. 
Adds an event for the tag in the tags array and token in the token array at teh specified index.

Parameters:
tokens - The tokens of a sentence.
tags - The tags of a sentence.
index - The index of the tag for which this event is to be created.

addEvents

public void addEvents(String[] tokens,
                      String[] tags)
Deprecated. 
Adds events for each tag/token of the specified arrays.

Parameters:
tokens - The tags for a sentence.
tags - The tokens for a sentence.

hasNext

public boolean hasNext()
Deprecated. 

next

public opennlp.model.Event next()
Deprecated. 


Copyright © 2010. All Rights Reserved.