Package 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.
-
-
Constructor Summary
Constructors Constructor Description InstanceWithConfidence(Instance inst, double c, boolean correct)
InstanceWithConfidence(Instance inst, double c, Sequence predicted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
boolean
correct()
double
getConfidence()
Instance
getInstance()
-
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
getConfidence
public double getConfidence()
-
getInstance
public Instance getInstance()
-
correct
public boolean correct()
-
-