cc.mallet.fst.confidence
Class MaxEntConfidenceEstimator
java.lang.Object
cc.mallet.fst.confidence.TransducerConfidenceEstimator
cc.mallet.fst.confidence.MaxEntConfidenceEstimator
- All Implemented Interfaces:
- java.io.Serializable
public class MaxEntConfidenceEstimator
- extends TransducerConfidenceEstimator
Estimates the confidence of a Segment
extracted by a Transducer
using a MaxEnt
classifier to classify segments
as "correct" or "incorrect." xxx needs some interface work
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxEntConfidenceEstimator
public MaxEntConfidenceEstimator(Transducer model,
double gaussianVariance)
MaxEntConfidenceEstimator
public MaxEntConfidenceEstimator(Transducer model)
trainClassifier
public MaxEnt trainClassifier(InstanceList ilist,
java.lang.String correct,
java.lang.String incorrect)
estimateConfidenceFor
public double estimateConfidenceFor(Segment segment,
SumLatticeDefault cachedLattice)
- Calculates the confidence in the tagging of a
Segment
.
- Specified by:
estimateConfidenceFor
in class TransducerConfidenceEstimator