Package cc.mallet.fst.confidence
Class MaxEntSequenceConfidenceEstimator
- java.lang.Object
-
- cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
-
- cc.mallet.fst.confidence.MaxEntSequenceConfidenceEstimator
-
public class MaxEntSequenceConfidenceEstimator extends TransducerSequenceConfidenceEstimator
Estimates the confidence of aSequence
extracted by aTransducer
using aMaxEnt
classifier to classify Sequences as "correct" or "incorrect." xxx needs some interface work.
-
-
Field Summary
-
Fields inherited from class cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
model
-
-
Constructor Summary
Constructors Constructor Description MaxEntSequenceConfidenceEstimator(Transducer model)
MaxEntSequenceConfidenceEstimator(Transducer model, double gaussianVariance)
-
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 anInstance
.MaxEnt
getClassifier()
PipedInstanceWithConfidence[]
rankPipedInstancesByConfidence(InstanceList ilist, java.lang.Object[] startTags, java.lang.Object[] continueTags)
MaxEnt
trainClassifier(InstanceList ilist, java.lang.String correct, java.lang.String incorrect)
Train underlying classifier onilist
.-
Methods inherited from class cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
rankInstancesByConfidence
-
-
-
-
Constructor Detail
-
MaxEntSequenceConfidenceEstimator
public MaxEntSequenceConfidenceEstimator(Transducer model, double gaussianVariance)
-
MaxEntSequenceConfidenceEstimator
public MaxEntSequenceConfidenceEstimator(Transducer model)
-
-
Method Detail
-
getClassifier
public MaxEnt getClassifier()
-
trainClassifier
public MaxEnt trainClassifier(InstanceList ilist, java.lang.String correct, java.lang.String incorrect)
Train underlying classifier onilist
. Assumes ilist has targstcorrect
orincorrect
.- Parameters:
ilist
- training list to build correct/incorrect classifiercorrect
- "correct" labelincorrect
- "incorrect" label
-
estimateConfidenceFor
public double estimateConfidenceFor(Instance instance, java.lang.Object[] startTags, java.lang.Object[] inTags)
Calculates the confidence in the tagging of anInstance
.- Specified by:
estimateConfidenceFor
in classTransducerSequenceConfidenceEstimator
-
rankPipedInstancesByConfidence
public PipedInstanceWithConfidence[] rankPipedInstancesByConfidence(InstanceList ilist, java.lang.Object[] startTags, java.lang.Object[] continueTags)
-
-