Class SentenceDetectorEvaluator

java.lang.Object
opennlp.tools.util.eval.Evaluator<opennlp.tools.sentdetect.SentenceSample>
opennlp.tools.sentdetect.SentenceDetectorEvaluator

public class SentenceDetectorEvaluator extends Evaluator<opennlp.tools.sentdetect.SentenceSample>
The SentenceDetectorEvaluator measures the performance of the given SentenceDetector with the provided reference SentenceSamples.
See Also:
  • Constructor Details

    • SentenceDetectorEvaluator

      public SentenceDetectorEvaluator(opennlp.tools.sentdetect.SentenceDetector sentenceDetector, opennlp.tools.sentdetect.SentenceDetectorEvaluationMonitor... listeners)
      Initializes the current instance.
      Parameters:
      sentenceDetector - The SentenceDetector to be used for predicting sentences.
      listeners - The evaluation sample listeners.
  • Method Details

    • getFMeasure

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