Class Event
java.lang.Object
opennlp.tools.ml.model.Event
The context of a decision point during training.
This includes contextual predicates and an outcome.
-
Constructor Details
-
Event
Instantiates anEvent.- Parameters:
outcome- The outcome to use. Must not benull.context- Thearrayof context elements. Must not benull.- Throws:
IllegalArgumentException- Thrown ifoutcomeorcontextisnull.
-
Event
Instantiates anEvent.- Parameters:
outcome- The outcome to use. Must not benull.context- Thearrayof context elements. Must not benull.values- Thefloatarray to use.- Throws:
IllegalArgumentException- Thrown ifoutcomeorcontextisnull.
-
Event
Instantiates anEvent.- Parameters:
outcome- The outcome to use. Must not benull.context- Thearrayof context elements. Must not benull.values- Thefloatarray to use.- Throws:
IllegalArgumentException- Thrown ifoutcomeorcontextisnull.
-
-
Method Details
-
getOutcome
- Returns:
- Retrieves the outcome.
-
getContext
-
getValues
public float[] getValues()- Returns:
- Retrieves the
floatarray.
-
toString
-