Package 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 forMultipleChoiceCRFActiveLearner
, where we want to find Instances that are mislabeled, but are likely to have a correct labeling in the top N Viterbi paths.
-
-
Field Summary
-
Fields inherited from class cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
model
-
-
Constructor Summary
Constructors Constructor Description NBestViterbiConfidenceEstimator(Transducer model, int N)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
estimateConfidenceFor(Instance instance, java.lang.Object[] startTags, java.lang.Object[] inTags)
Calculates the confidence in the tagging of aInstance
.-
Methods inherited from class cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
rankInstancesByConfidence
-
-
-
-
Constructor Detail
-
NBestViterbiConfidenceEstimator
public NBestViterbiConfidenceEstimator(Transducer model, int N)
-
-
Method Detail
-
estimateConfidenceFor
public double estimateConfidenceFor(Instance instance, java.lang.Object[] startTags, java.lang.Object[] inTags)
Calculates the confidence in the tagging of aInstance
.- Specified by:
estimateConfidenceFor
in classTransducerSequenceConfidenceEstimator
-
-