opennlp.tools.parser

## Class ParserCrossValidator

- java.lang.Object
- - opennlp.tools.parser.ParserCrossValidator

-     public class ParserCrossValidator
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ParserCrossValidator(String languageCode, TrainingParameters params, HeadRules rules, ParserType parserType, ParserEvaluationMonitor... monitors)`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### ParserCrossValidator

          public ParserCrossValidator(String languageCode,
                                      TrainingParameters params,
                                      HeadRules rules,
                                      ParserType parserType,
                                      ParserEvaluationMonitor... monitors)

  - ### Method Detail

    - #### evaluate

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

      Throws:
        `IOException`

    - #### getFMeasure

          public FMeasure getFMeasure()

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