public class SentimentEventStream extends opennlp.tools.util.AbstractEventStream<SentimentSample>
| Constructor and Description |
|---|
SentimentEventStream(opennlp.tools.util.ObjectStream<SentimentSample> samples,
SentimentContextGenerator createContextGenerator)
Initializes the event stream.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<opennlp.tools.ml.model.Event> |
createEvents(SentimentSample sample)
Creates events.
|
public SentimentEventStream(opennlp.tools.util.ObjectStream<SentimentSample> samples, SentimentContextGenerator createContextGenerator)
samples - the sentiment samples to be usedcreateContextGenerator - the context generator to be usedprotected Iterator<opennlp.tools.ml.model.Event> createEvents(SentimentSample sample)
createEvents in class opennlp.tools.util.AbstractEventStream<SentimentSample>sample - the sentiment sample to be usedCopyright © 2016. All rights reserved.