Package opennlp.tools.sentiment

# Class SentimentEventStream

java.lang.Object
opennlp.tools.util.AbstractEventStream<opennlp.tools.sentiment.SentimentSample>
opennlp.tools.sentiment.SentimentEventStream

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

public class SentimentEventStream extends AbstractEventStream<opennlp.tools.sentiment.SentimentSample>
Class for creating events for Sentiment Analysis that is later sent to MaxEnt.

See Also:
  - `SentimentSample`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SentimentEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample> samples, SentimentContextGenerator createContextGenerator)`
  Instantiates a `event stream`.

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

  - ### SentimentEventStream

    public SentimentEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample> samples, SentimentContextGenerator createContextGenerator)
    Instantiates a `event stream`.
    Parameters:
      `samples` - the sentiment samples to be used
      `createContextGenerator` - the context generator to be used