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 probabilistic `Lemmatizer`.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `LemmaSampleEventStream​(ObjectStream<LemmaSample> d, 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 Detail

    - #### LemmaSampleEventStream

          public LemmaSampleEventStream​(ObjectStream<LemmaSample> d,
                                        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`.