Package opennlp.tools.lemmatizer

# Class LemmaSampleEventStream

java.lang.Object
opennlp.tools.util.AbstractEventStream<opennlp.tools.lemmatizer.LemmaSample>
opennlp.tools.lemmatizer.LemmaSampleEventStream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event>`

public class LemmaSampleEventStream extends AbstractEventStream<opennlp.tools.lemmatizer.LemmaSample>
Class for creating an event stream out of data files for training a probabilistic `Lemmatizer`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LemmaSampleEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.lemmatizer.LemmaSample> d, opennlp.tools.lemmatizer.LemmatizerContextGenerator cg)`
  Creates a new event stream based on the specified data stream using a `LemmatizerContextGenerator`.

- ## Method Summary

  ### Methods inherited from class opennlp.tools.util.AbstractEventStream

  `close, read, reset`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LemmaSampleEventStream

    public LemmaSampleEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.lemmatizer.LemmaSample> d, opennlp.tools.lemmatizer.LemmatizerContextGenerator cg)
    Creates a new event stream based on the specified data stream using a `LemmatizerContextGenerator`.
    Parameters:
      `d` - The data stream for this event stream.
      `cg` - The `LemmatizerContextGenerator` which should be used in the creation of events for this event stream `d`.