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