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

opennlp.tools.chunker

## Class ChunkerCrossValidator

- java.lang.Object
- - opennlp.tools.chunker.ChunkerCrossValidator

-     public class ChunkerCrossValidator
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ChunkerCrossValidator(String languageCode, TrainingParameters params, ChunkerFactory factory, ChunkerEvaluationMonitor... listeners)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `evaluate(ObjectStream<ChunkSample> samples, int nFolds)` Starts the evaluation.
    `FMeasure` | `getFMeasure()`

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

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

- - ### Constructor Detail

    - #### ChunkerCrossValidator

          public ChunkerCrossValidator(String languageCode,
                                       TrainingParameters params,
                                       ChunkerFactory factory,
                                       ChunkerEvaluationMonitor... listeners)

  - ### Method Detail

    - #### evaluate

          public void evaluate(ObjectStream<ChunkSample> samples,
                               int nFolds)
                        throws IOException

      Starts the evaluation.
      Parameters:
        `samples` - the data to train and test
        `nFolds` - number of folds
      Throws:
        `IOException`

    - #### getFMeasure

          public FMeasure getFMeasure()

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