|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.model.AbstractEventStream opennlp.tools.postag.POSEventGenerator
@Deprecated public class POSEventGenerator
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 |
---|
public POSEventGenerator(POSContextGenerator pcg)
pcg
- The context generator for this event stream.public POSEventGenerator()
Method Detail |
---|
public void addEvent(String[] tokens, String[] tags, int index)
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.public void addEvents(String[] tokens, String[] tags)
tokens
- The tags for a sentence.tags
- The tokens for a sentence.public boolean hasNext()
public opennlp.model.Event next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |