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

opennlp.tools.namefind

## Class TokenNameFinderEvaluator

- java.lang.Object
- - opennlp.tools.util.eval.Evaluator<NameSample>
  - - opennlp.tools.namefind.TokenNameFinderEvaluator

-     public class TokenNameFinderEvaluator
      extends Evaluator<NameSample>

  The `TokenNameFinderEvaluator` measures the performance of the given `TokenNameFinder` with the provided reference `NameSample`s.
  See Also:
    `Evaluator`, `TokenNameFinder`, `NameSample`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TokenNameFinderEvaluator(TokenNameFinder nameFinder, TokenNameFinderEvaluationMonitor... listeners)` Initializes the current instance with the given `TokenNameFinder`.

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

    - #### TokenNameFinderEvaluator

          public TokenNameFinderEvaluator(TokenNameFinder nameFinder,
                                          TokenNameFinderEvaluationMonitor... listeners)

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

  - ### Method Detail

    - #### getFMeasure

          public FMeasure getFMeasure()

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