Package cc.mallet.fst.confidence
Class ConstrainedForwardBackwardConfidenceEstimator
- java.lang.Object
-
- cc.mallet.fst.confidence.TransducerConfidenceEstimator
-
- cc.mallet.fst.confidence.ConstrainedForwardBackwardConfidenceEstimator
-
- All Implemented Interfaces:
java.io.Serializable
public class ConstrainedForwardBackwardConfidenceEstimator extends TransducerConfidenceEstimator
Estimates the confidence of aSegment
extracted by aTransducer
by performing a "constrained lattice" calculation. Essentially, this sums all possible ways this segment could have been extracted and normalizes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class cc.mallet.fst.confidence.TransducerConfidenceEstimator
model
-
-
Constructor Summary
Constructors Constructor Description ConstrainedForwardBackwardConfidenceEstimator(Transducer model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
estimateConfidenceFor(Segment segment, SumLatticeDefault cachedLattice)
Calculates the confidence in the tagging of aSegment
.-
Methods inherited from class cc.mallet.fst.confidence.TransducerConfidenceEstimator
estimateConfidenceFor, getSegmentConfidences, getTransducer, rankSegmentsByConfidence, rankSegmentsByConfidence
-
-
-
-
Constructor Detail
-
ConstrainedForwardBackwardConfidenceEstimator
public ConstrainedForwardBackwardConfidenceEstimator(Transducer model)
-
-
Method Detail
-
estimateConfidenceFor
public double estimateConfidenceFor(Segment segment, SumLatticeDefault cachedLattice)
Calculates the confidence in the tagging of aSegment
.- Specified by:
estimateConfidenceFor
in classTransducerConfidenceEstimator
- Returns:
- 0-1 confidence value. higher = more confident.
-
-