Package opennlp.tools.lemmatizer
Class LemmaSampleEventStream
- java.lang.Object
-
- opennlp.tools.util.AbstractEventStream<LemmaSample>
-
- opennlp.tools.lemmatizer.LemmaSampleEventStream
-
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<Event>
public class LemmaSampleEventStream extends AbstractEventStream<LemmaSample>
Class for creating an event stream out of data files for training a probabilisticLemmatizer
.
-
-
Constructor Summary
Constructors Constructor Description LemmaSampleEventStream(ObjectStream<LemmaSample> d, LemmatizerContextGenerator cg)
Creates a new event stream based on the specified data stream using aLemmatizerContextGenerator
.
-
-
-
Constructor Detail
-
LemmaSampleEventStream
public LemmaSampleEventStream(ObjectStream<LemmaSample> d, LemmatizerContextGenerator cg)
Creates a new event stream based on the specified data stream using aLemmatizerContextGenerator
.- Parameters:
d
- The data stream for this event stream.cg
- TheLemmatizerContextGenerator
which should be used in the creation of events for this event streamd
.
-
-