|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopennlp.tools.chunker.ChunkerEventStream
public class ChunkerEventStream
Class for creating an event stream out of data files for training a chunker.
| Constructor Summary | |
|---|---|
ChunkerEventStream(opennlp.maxent.DataStream d)
Creates a new event stream based on the specified data stream. |
|
ChunkerEventStream(opennlp.maxent.DataStream d,
ChunkerContextGenerator cg)
Creates a new event stream based on the specified data stream using the specified context generator. |
|
| Method Summary | |
|---|---|
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 ChunkerEventStream(opennlp.maxent.DataStream d)
d - The data stream for this event stream.
public ChunkerEventStream(opennlp.maxent.DataStream d,
ChunkerContextGenerator cg)
d - The data stream for this event stream.cg - The context generator which should be used in the creation of events for this event stream.| Method Detail |
|---|
public opennlp.maxent.Event nextEvent()
nextEvent in interface opennlp.maxent.EventStreampublic boolean hasNext()
hasNext in interface opennlp.maxent.EventStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||