Class ChunkerEventStream
java.lang.Object
opennlp.tools.util.AbstractEventStream<opennlp.tools.chunker.ChunkSample>
opennlp.tools.chunker.ChunkerEventStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event>
Class for creating an event stream out of data files for training a
Chunker.-
Constructor Summary
ConstructorsConstructorDescriptionChunkerEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.chunker.ChunkSample> d, opennlp.tools.chunker.ChunkerContextGenerator cg) Creates a new event stream based on the specified data stream using the given context generator. -
Method Summary
Methods inherited from class AbstractEventStream
close, read, reset
-
Constructor Details
-
ChunkerEventStream
public ChunkerEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.chunker.ChunkSample> d, opennlp.tools.chunker.ChunkerContextGenerator cg) Creates a new event stream based on the specified data stream using the given context generator.- Parameters:
d- The data stream for this event stream.cg- AChunkerContextGeneratorwhich should be used for the event streamd.
-