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:
-
Constructor Summary
ConstructorsConstructorDescriptionSentimentEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample> samples, SentimentContextGenerator createContextGenerator) Instantiates aevent stream. -
Method Summary
Methods inherited from class AbstractEventStream
close, read, reset
-
Constructor Details
-
SentimentEventStream
public SentimentEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample> samples, SentimentContextGenerator createContextGenerator) Instantiates aevent stream.- Parameters:
samples- the sentiment samples to be usedcreateContextGenerator- the context generator to be used
-