Package opennlp.tools.ml.model
Class ComparableEvent
- java.lang.Object
-
- opennlp.tools.ml.model.ComparableEvent
-
- All Implemented Interfaces:
java.lang.Comparable<ComparableEvent>
public class ComparableEvent extends java.lang.Object implements java.lang.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ComparableEvent ce)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(ComparableEvent ce)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ComparableEvent>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-