cc.mallet.fst.confidence
Class NBestViterbiConfidenceEstimator
java.lang.Object
cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
cc.mallet.fst.confidence.NBestViterbiConfidenceEstimator
public class NBestViterbiConfidenceEstimator
- extends TransducerSequenceConfidenceEstimator
Estimates the confidence of an entire sequence by the probability
that one of the the Viterbi paths rank 2->N is correct. Note that
this is a strange definition of confidence, and is mainly used for
MultipleChoiceCRFActiveLearner
, where we want to find
Instances that are mislabeled, but are likely to have a correct
labeling in the top N Viterbi paths.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NBestViterbiConfidenceEstimator
public NBestViterbiConfidenceEstimator(Transducer model,
int N)
estimateConfidenceFor
public double estimateConfidenceFor(Instance instance,
java.lang.Object[] startTags,
java.lang.Object[] inTags)
- Calculates the confidence in the tagging of a
Instance
.
- Specified by:
estimateConfidenceFor
in class TransducerSequenceConfidenceEstimator