opennlp.tools.ml.model

## Class Event

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

-     public class Event
      extends Object

  The context of a decision point during training. This includes contextual predicates and an outcome.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Event(String outcome, String[] context)`
    `Event(String outcome, String[] context, float[] values)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | `getContext()`
    `String` | `getOutcome()`
    `float[]` | `getValues()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Event

          public Event(String outcome,
                       String[] context)

    - #### Event

          public Event(String outcome,
                       String[] context,
                       float[] values)

  - ### Method Detail

    - #### getOutcome

          public String getOutcome()

    - #### getContext

          public String[] getContext()

    - #### getValues

          public float[] getValues()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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