Package cc.mallet.fst.confidence
Class ConfidenceCorrectorEvaluator
- java.lang.Object
-
- cc.mallet.fst.confidence.ConfidenceCorrectorEvaluator
-
public class ConfidenceCorrectorEvaluator extends java.lang.Object
Calculates the effectiveness of "constrained viterbi" in propagating corrections in one segment of a sequence to other segments.
-
-
Constructor Summary
Constructors Constructor Description ConfidenceCorrectorEvaluator(java.lang.Object[] startTags, java.lang.Object[] inTags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate(Transducer model, java.util.ArrayList predictions, InstanceList ilist, java.util.ArrayList correctedSegments, java.lang.String description, java.io.PrintStream outputStream, boolean errorsInUncorrected)
Only evaluates over sequences which contain errors.
-
-
-
Method Detail
-
evaluate
public void evaluate(Transducer model, java.util.ArrayList predictions, InstanceList ilist, java.util.ArrayList correctedSegments, java.lang.String description, java.io.PrintStream outputStream, boolean errorsInUncorrected)
Only evaluates over sequences which contain errors. Examine region not directly corrected bycorrectedSegments
to measure effects of error propagation.- Parameters:
model
- used to segment input sequencepredictions
- list of the corrected segmentationilist
- list of testing datacorrectedSegments
- list ofSegment
s in each sequence that were corrected...currently only allows one segment per instance.uncorrected
- true if we only evaluate sequences where errors remain after correction
-
-