Package cc.mallet.fst.confidence
Class RandomConfidenceEstimator
- java.lang.Object
-
- cc.mallet.fst.confidence.TransducerConfidenceEstimator
-
- cc.mallet.fst.confidence.RandomConfidenceEstimator
-
- All Implemented Interfaces:
java.io.Serializable
public class RandomConfidenceEstimator extends TransducerConfidenceEstimator
Randomly assigns values between 0-1 to the confidence of aSegment
. Used as baseline to compare with other methods.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class cc.mallet.fst.confidence.TransducerConfidenceEstimator
model
-
-
Constructor Summary
Constructors Constructor Description RandomConfidenceEstimator(int seed, Transducer model)
RandomConfidenceEstimator(Transducer model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
estimateConfidenceFor(Segment segment, SumLatticeDefault cachedLattice)
Randomly generate the confidence in the tagging of aSegment
.-
Methods inherited from class cc.mallet.fst.confidence.TransducerConfidenceEstimator
estimateConfidenceFor, getSegmentConfidences, getTransducer, rankSegmentsByConfidence, rankSegmentsByConfidence
-
-
-
-
Constructor Detail
-
RandomConfidenceEstimator
public RandomConfidenceEstimator(int seed, Transducer model)
-
RandomConfidenceEstimator
public RandomConfidenceEstimator(Transducer model)
-
-
Method Detail
-
estimateConfidenceFor
public double estimateConfidenceFor(Segment segment, SumLatticeDefault cachedLattice)
Randomly generate the confidence in the tagging of aSegment
.- Specified by:
estimateConfidenceFor
in classTransducerConfidenceEstimator
-
-