Package opennlp.tools.sentiment

# 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 `SentimentSample`s.

See Also:
  - `Evaluator`
  - `SentimentME`
  - `SentimentSample`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SentimentEvaluator(SentimentME sentiment, opennlp.tools.sentiment.SentimentEvaluationMonitor... listeners)`
  Initializes the current instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `opennlp.tools.util.eval.FMeasure`
  `getFMeasure()`

  ### Methods inherited from class opennlp.tools.util.eval.Evaluator

  `evaluate, evaluateSample`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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()