|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopennlp.tools.tokenize.TokSpanEventStream
public class TokSpanEventStream
An implementation of EventStream which allows events to be added by offset and returns events for these offset-based tokens.
| Constructor Summary | |
|---|---|
TokSpanEventStream(boolean skipAlphaNumerics)
Initializes the current instance. |
|
TokSpanEventStream(boolean skipAlphaNumerics,
TokenContextGenerator cg)
Initializes the current instance. |
|
| Method Summary | |
|---|---|
void |
addEvents(Span[] tokens,
java.lang.String text)
Adds training events to the event stream for each of the specified tokens. |
boolean |
hasNext()
|
opennlp.maxent.Event |
nextEvent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokSpanEventStream(boolean skipAlphaNumerics,
TokenContextGenerator cg)
skipAlphaNumerics - cg - public TokSpanEventStream(boolean skipAlphaNumerics)
skipAlphaNumerics - | Method Detail |
|---|
public void addEvents(Span[] tokens,
java.lang.String text)
tokens - charachter offsets into the specified text.text - The text of the tokens.public boolean hasNext()
hasNext in interface opennlp.maxent.EventStreampublic opennlp.maxent.Event nextEvent()
nextEvent in interface opennlp.maxent.EventStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||