Class SentimentEvaluator
java.lang.Object
opennlp.tools.util.eval.Evaluator<opennlp.tools.sentiment.SentimentSample>
opennlp.tools.sentiment.SentimentEvaluator
The
SentimentEvaluator measures the performance of
the given SentimentME with the provided reference
SentimentSamples.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSentimentEvaluator(SentimentME sentiment, opennlp.tools.sentiment.SentimentEvaluationMonitor... listeners) Initializes the current instance. -
Method Summary
Methods inherited from class Evaluator
evaluate, evaluateSample
-
Constructor Details
-
SentimentEvaluator
public SentimentEvaluator(SentimentME sentiment, opennlp.tools.sentiment.SentimentEvaluationMonitor... listeners) Initializes the current instance.- Parameters:
sentiment- TheSentimentMEto be used for predicting sentiment.listeners- Theevaluation sample listeners.
-
-
Method Details
-
getFMeasure
public opennlp.tools.util.eval.FMeasure getFMeasure()
-