SENTIMENT - Sentiment object that will be the annotation.public class NaiveBayesSentimentAnnotator<SENTIMENT extends Sentiment> extends NaiveBayesAnnotator<List<String>,SENTIMENT>
NaiveBayesAnnotator for sentiment analysis.NaiveBayesAnnotator.Mode| Constructor and Description |
|---|
NaiveBayesSentimentAnnotator(NaiveBayesAnnotator.Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
train(Iterable<? extends Annotated<List<String>,SENTIMENT>> data)
Train the annotator with the given data.
|
annotate, create, getAnnotations, reset, traintrain, trainMultiClassclassifypublic NaiveBayesSentimentAnnotator(NaiveBayesAnnotator.Mode mode)
public void train(Iterable<? extends Annotated<List<String>,SENTIMENT>> data)
IncrementalAnnotatorIncrementalTrainer.train(Object) on each data item.
Subclasses may override to do something more intelligent if necessary.