Package cc.mallet.fst.confidence
Class SegmentProductConfidenceEstimator
- java.lang.Object
-
- cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
-
- cc.mallet.fst.confidence.SegmentProductConfidenceEstimator
-
public class SegmentProductConfidenceEstimator extends TransducerSequenceConfidenceEstimator
Estimates the confidence of an entire sequence by combining the output of a segment confidence estimator for each segment.
-
-
Field Summary
-
Fields inherited from class cc.mallet.fst.confidence.TransducerSequenceConfidenceEstimator
model
-
-
Constructor Summary
Constructors Constructor Description SegmentProductConfidenceEstimator(Transducer model, TransducerConfidenceEstimator segmentConfidenceEstimator)
-
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
-
SegmentProductConfidenceEstimator
public SegmentProductConfidenceEstimator(Transducer model, TransducerConfidenceEstimator segmentConfidenceEstimator)
-
-
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
-
-