Uses of Class opennlp.tools.ml.naivebayes.Probability (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

## Uses of Class
opennlp.tools.ml.naivebayes.Probability

- Packages that use Probability
  Package | Description
  --- | ---
  opennlp.tools.ml.naivebayes |

- - ### Uses of Probability in opennlp.tools.ml.naivebayes

    Subclasses of Probability in opennlp.tools.ml.naivebayes
    Modifier and Type | Class and Description
    --- | ---
    `class` | `LogProbability<T>` Class implementing the probability for a label.

    Methods in opennlp.tools.ml.naivebayes with parameters of type Probability
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | LogProbability.`isLarger(Probability probability)` Checks if a probability is greater than the old one.
    `boolean` | Probability.`isLarger(Probability probability)` Checks if a probability is greater than the old one.
    `void` | LogProbability.`set(Probability probability)` Assigns a probability to a label, discarding any previously assigned probability.
    `void` | Probability.`set(Probability probability)` Assigns a probability to a label, discarding any previously assigned probability.
    `void` | LogProbabilities.`set(T t, Probability<T> probability)` Assigns a probability to a label, discarding any previously assigned probability.
    `void` | Probabilities.`set(T t, Probability<T> probability)` Assigns a probability to a label, discarding any previously assigned probability.
    `void` | LogProbability.`setIfLarger(Probability probability)` Assigns a probability to a label, discarding any previously assigned probability, if the new probability is greater than the old one.
    `void` | Probability.`setIfLarger(Probability probability)` Assigns a probability to a label, discarding any previously assigned probability, if the new probability is greater than the old one.

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