cc.mallet.fst.confidence
Class InstanceWithConfidence
java.lang.Object
cc.mallet.fst.confidence.InstanceWithConfidence
- All Implemented Interfaces:
- java.lang.Comparable
public class InstanceWithConfidence
- extends java.lang.Object
- implements java.lang.Comparable
Helper class to store confidence of an Instance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstanceWithConfidence
public InstanceWithConfidence(Instance inst,
double c,
Sequence predicted)
InstanceWithConfidence
public InstanceWithConfidence(Instance inst,
double c,
boolean correct)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
getConfidence
public double getConfidence()
getInstance
public Instance getInstance()
correct
public boolean correct()