Class SentimentEvaluator

java.lang.Object
opennlp.tools.util.eval.Evaluator<opennlp.tools.sentiment.SentimentSample>
opennlp.tools.sentiment.SentimentEvaluator

public class SentimentEvaluator extends Evaluator<opennlp.tools.sentiment.SentimentSample>
The SentimentEvaluator measures the performance of the given SentimentME with the provided reference SentimentSamples.
See Also:
  • Constructor Details

    • SentimentEvaluator

      public SentimentEvaluator(SentimentME sentiment, opennlp.tools.sentiment.SentimentEvaluationMonitor... listeners)
      Initializes the current instance.
      Parameters:
      sentiment - The SentimentME to be used for predicting sentiment.
      listeners - The evaluation sample listeners.
  • Method Details

    • getFMeasure

      public opennlp.tools.util.eval.FMeasure getFMeasure()