| Package | Description |
|---|---|
| opennlp.tools.formats | |
| opennlp.tools.sentiment |
| Modifier and Type | Method and Description |
|---|---|
opennlp.tools.util.ObjectStream<SentimentSample> |
SentimentSampleStreamFactory.create(String[] args)
Creates a sentiment sample stream factory
|
| Modifier and Type | Method and Description |
|---|---|
SentimentSample |
SentimentSampleStream.read()
Reads the text
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<opennlp.tools.ml.model.Event> |
SentimentEventStream.createEvents(SentimentSample sample)
Creates events.
|
| Modifier and Type | Method and Description |
|---|---|
static SentimentModel |
SentimentME.train(String languageCode,
opennlp.tools.util.ObjectStream<SentimentSample> samples,
opennlp.tools.util.TrainingParameters trainParams,
SentimentFactory factory)
Trains a Sentiment Analysis model.
|
| Constructor and Description |
|---|
SentimentEventStream(opennlp.tools.util.ObjectStream<SentimentSample> samples,
SentimentContextGenerator createContextGenerator)
Initializes the event stream.
|
Copyright © 2016. All rights reserved.