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

opennlp.tools.tokenize

## Class DetokenizerEvaluator

- java.lang.Object
- - opennlp.tools.util.eval.Evaluator<TokenSample>
  - - opennlp.tools.tokenize.DetokenizerEvaluator

-     public class DetokenizerEvaluator
      extends Evaluator<TokenSample>

  The `DetokenizerEvaluator` measures the performance of the given `Detokenizer` with the provided reference `TokenSample`s.
  See Also:
    `DetokenizerEvaluator`, `Detokenizer`, `TokenSample`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DetokenizerEvaluator(Detokenizer detokenizer, DetokenEvaluationErrorListener... listeners)` Initializes the current instance with the given `Detokenizer`.

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

    - #### DetokenizerEvaluator

          public DetokenizerEvaluator(Detokenizer detokenizer,
                                      DetokenEvaluationErrorListener... listeners)

      Initializes the current instance with the given `Detokenizer`.
      Parameters:
        `detokenizer` - the `Detokenizer` to evaluate.
        `listeners` - evaluation sample listeners

  - ### Method Detail

    - #### getFMeasure

          public FMeasure getFMeasure()

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