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

opennlp.tools.ml.naivebayes

## Class NaiveBayesEvalParameters

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

-     public class NaiveBayesEvalParameters
      extends EvalParameters

  Parameters for the evalution of a naive bayes classifier

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NaiveBayesEvalParameters(Context[] params, int numOutcomes, double[] outcomeTotals, long vocabulary)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `double[]` | `getOutcomeTotals()`
    `long` | `getVocabulary()`

    - ### Methods inherited from class opennlp.tools.ml.model.EvalParameters

      `equals, getNumOutcomes, getParams, hashCode`

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

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

- - ### Constructor Detail

    - #### NaiveBayesEvalParameters

          public NaiveBayesEvalParameters(Context[] params,
                                          int numOutcomes,
                                          double[] outcomeTotals,
                                          long vocabulary)

  - ### Method Detail

    - #### getOutcomeTotals

          public double[] getOutcomeTotals()

    - #### getVocabulary

          public long getVocabulary()

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