edu.umass.cs.mallet.base.fst.confidence
Class RandomConfidenceEstimator

java.lang.Object
  extended byedu.umass.cs.mallet.base.fst.confidence.TransducerConfidenceEstimator
      extended byedu.umass.cs.mallet.base.fst.confidence.RandomConfidenceEstimator
All Implemented Interfaces:
java.io.Serializable

public class RandomConfidenceEstimator
extends TransducerConfidenceEstimator

Randomly assigns values between 0-1 to the confidence of a Segment. Used as baseline to compare with other methods.

See Also:
Serialized Form

Constructor Summary
RandomConfidenceEstimator(int seed, Transducer model)
           
RandomConfidenceEstimator(Transducer model)
           
 
Method Summary
 double estimateConfidenceFor(Segment segment, Transducer.Lattice cachedLattice)
          Randomly generate the confidence in the tagging of a Segment.
 
Methods inherited from class edu.umass.cs.mallet.base.fst.confidence.TransducerConfidenceEstimator
estimateConfidenceFor, getSegmentConfidences, getTransducer, rankSegmentsByConfidence, rankSegmentsByConfidence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomConfidenceEstimator

public RandomConfidenceEstimator(int seed,
                                 Transducer model)

RandomConfidenceEstimator

public RandomConfidenceEstimator(Transducer model)
Method Detail

estimateConfidenceFor

public double estimateConfidenceFor(Segment segment,
                                    Transducer.Lattice cachedLattice)
Randomly generate the confidence in the tagging of a Segment.

Specified by:
estimateConfidenceFor in class TransducerConfidenceEstimator