opennlp.model
Class ComparableEvent
java.lang.Object
opennlp.model.ComparableEvent
- All Implemented Interfaces:
- java.lang.Comparable
public class ComparableEvent
- extends java.lang.Object
- implements java.lang.Comparable
A maxent event representation which we can use to sort based on the
predicates indexes contained in the events.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
outcome
public int outcome
predIndexes
public int[] predIndexes
seen
public int seen
values
public float[] values
ComparableEvent
public ComparableEvent(int oc,
int[] pids,
float[] values)
ComparableEvent
public ComparableEvent(int oc,
int[] pids)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.