cc.mallet.fst.confidence
Class InstanceWithConfidence

java.lang.Object
  extended by 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
InstanceWithConfidence(Instance inst, double c, boolean correct)
           
InstanceWithConfidence(Instance inst, double c, Sequence predicted)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean correct()
           
 double getConfidence()
           
 Instance getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceWithConfidence

public InstanceWithConfidence(Instance inst,
                              double c,
                              Sequence predicted)

InstanceWithConfidence

public InstanceWithConfidence(Instance inst,
                              double c,
                              boolean correct)
Method Detail

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()