LemmaSampleEventStream (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.lemmatizer, class: LemmaSampleEventStream

# 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 AbstractEventStream

  `close, read, reset`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### 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`.