SentenceDetectorEvaluator (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.sentdetect

## Class SentenceDetectorEvaluator

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

-     public class SentenceDetectorEvaluator
      extends Evaluator<SentenceSample>

  The `SentenceDetectorEvaluator` measures the performance of the given `SentenceDetector` with the provided reference `SentenceSample`s.
  See Also:
    `Evaluator`, `SentenceDetector`, `SentenceSample`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SentenceDetectorEvaluator(SentenceDetector sentenceDetector, SentenceDetectorEvaluationMonitor... listeners)` Initializes the current instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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 Detail

    - #### SentenceDetectorEvaluator

          public SentenceDetectorEvaluator(SentenceDetector sentenceDetector,
                                           SentenceDetectorEvaluationMonitor... listeners)

      Initializes the current instance.
      Parameters:
        `sentenceDetector` -
        `listeners` - evaluation sample listeners

  - ### Method Detail

    - #### getFMeasure

          public FMeasure getFMeasure()

Copyright © 2026 The Apache Software Foundation. All rights reserved.