opennlp.tools.ml.model

## Class EvalParameters

- java.lang.Object
- - opennlp.tools.ml.model.EvalParameters

- Direct Known Subclasses:
    NaiveBayesEvalParameters

      public class EvalParameters
      extends Object

  This class encapsulates the varibales used in producing probabilities from a model and facilitaes passing these variables to the eval method.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EvalParameters(Context[] params, int numOutcomes)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `int` | `getNumOutcomes()`
    `Context[]` | `getParams()`
    `int` | `hashCode()`

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

      `getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EvalParameters

          public EvalParameters(Context[] params,
                                int numOutcomes)

  - ### Method Detail

    - #### getParams

          public Context[] getParams()

    - #### getNumOutcomes

          public int getNumOutcomes()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

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