opennlp.model
Class ComparableEvent
java.lang.Object
opennlp.model.ComparableEvent
- All Implemented Interfaces:
- Comparable
public class ComparableEvent
- extends Object
- implements Comparable
A maxent event representation which we can use to sort based on the
predicates indexes contained in the events.
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(Object o)
- Specified by:
compareTo
in interface Comparable
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.