Package opennlp.tools.chunker
Class ChunkerEventStream
- java.lang.Object
-
- opennlp.tools.util.AbstractEventStream<ChunkSample>
-
- opennlp.tools.chunker.ChunkerEventStream
-
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<Event>
public class ChunkerEventStream extends AbstractEventStream<ChunkSample>
Class for creating an event stream out of data files for training aChunker
.
-
-
Constructor Summary
Constructors Constructor Description ChunkerEventStream(ObjectStream<ChunkSample> d, ChunkerContextGenerator cg)
Creates a new event stream based on the specified data stream using the given context generator.
-
-
-
Constructor Detail
-
ChunkerEventStream
public ChunkerEventStream(ObjectStream<ChunkSample> d, 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
- AChunkerContextGenerator
which should be used for the event streamd
.
-
-