|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.model.AbstractEventStream
opennlp.tools.chunker.ChunkerEventStream
public class ChunkerEventStream
Class for creating an event stream out of data files for training a chunker.
| Constructor Summary | |
|---|---|
ChunkerEventStream(ObjectStream<ChunkSample> d)
Creates a new event stream based on the specified data stream. |
|
ChunkerEventStream(ObjectStream<ChunkSample> d,
ChunkerContextGenerator cg)
Creates a new event stream based on the specified data stream using the specified context generator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Event |
next()
|
| Methods inherited from class opennlp.model.AbstractEventStream |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChunkerEventStream(ObjectStream<ChunkSample> 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.public ChunkerEventStream(ObjectStream<ChunkSample> d)
d - The data stream for this event stream.| Method Detail |
|---|
public Event next()
public boolean hasNext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||