Package opennlp.tools.ml.model
Class ComparableEvent
- java.lang.Object
-
- opennlp.tools.ml.model.ComparableEvent
-
- All Implemented Interfaces:
Comparable<ComparableEvent>
public class ComparableEvent extends Object implements Comparable<ComparableEvent>
A maxent event representation which we can use to sort based on the predicates indexes contained in the events.
-
-
Field Summary
Fields Modifier and Type Field Description int
outcome
int[]
predIndexes
int
seen
float[]
values
-
Constructor Summary
Constructors Constructor Description ComparableEvent(int oc, int[] pids)
ComparableEvent(int oc, int[] pids, float[] values)
-
-
-
Method Detail
-
compareTo
public int compareTo(ComparableEvent ce)
- Specified by:
compareTo
in interfaceComparable<ComparableEvent>
-
-