Package opennlp.tools.chunker
Class ChunkerEventStream
- java.lang.Object
-
- opennlp.tools.util.AbstractEventStream<ChunkSample>
-
- opennlp.tools.chunker.ChunkerEventStream
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,ObjectStream<Event>
public class ChunkerEventStream extends AbstractEventStream<ChunkSample>
Class for creating an event stream out of data files for training a chunker.
-
-
Constructor Summary
Constructors Constructor Description ChunkerEventStream(ObjectStream<ChunkSample> d, ChunkerContextGenerator cg)
Creates a new event stream based on the specified data stream using the specified context generator.
-
Method Summary
-
Methods inherited from class opennlp.tools.util.AbstractEventStream
close, read, reset
-
-
-
-
Constructor Detail
-
ChunkerEventStream
public ChunkerEventStream(ObjectStream<ChunkSample> d, ChunkerContextGenerator cg)
Creates a new event stream based on the specified data stream using the specified context generator.- Parameters:
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.
-
-