Package opennlp.tools.ml.model
Class ComparableEvent
java.lang.Object
opennlp.tools.ml.model.ComparableEvent
- All Implemented Interfaces:
Comparable<ComparableEvent>
A maxent event representation which we can use to sort based on the
predicates indexes contained in the events.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
final int[]
int
final float[]
-
Constructor Summary
ConstructorDescriptionComparableEvent
(int oc, int[] pids) ComparableEvent
(int oc, int[] pids, float[] values) -
Method Summary
-
Field Details
-
outcome
public final int outcome -
predIndexes
public final int[] predIndexes -
seen
public int seen -
values
public final float[] values
-
-
Constructor Details
-
ComparableEvent
public ComparableEvent(int oc, int[] pids, float[] values) -
ComparableEvent
public ComparableEvent(int oc, int[] pids)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ComparableEvent>
-
equals
-
hashCode
public int hashCode() -
toString
-