Package cc.mallet.fst.confidence
Class IsolatedSegmentTransducerCorrector
- java.lang.Object
-
- cc.mallet.fst.confidence.IsolatedSegmentTransducerCorrector
-
- All Implemented Interfaces:
TransducerCorrector
public class IsolatedSegmentTransducerCorrector extends java.lang.Object implements TransducerCorrector
Corrects a subset of theSegments produced by aTransducer. It's most useful to find theSegments that theTransduceris least confident in and correct those using the trueLabeling(correctLeastConfidenceSegments). Unlike inConstrainedViterbi, the corrected segment does not affect the labeling of other segments in the sequence. For comparison.
-
-
Constructor Summary
Constructors Constructor Description IsolatedSegmentTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator, Transducer model)IsolatedSegmentTransducerCorrector(Transducer model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayListcorrectLeastConfidentSegments(InstanceList ilist, java.lang.Object[] startTags, java.lang.Object[] continueTags)
-
-
-
Constructor Detail
-
IsolatedSegmentTransducerCorrector
public IsolatedSegmentTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator, Transducer model)
-
IsolatedSegmentTransducerCorrector
public IsolatedSegmentTransducerCorrector(Transducer model)
-
-
Method Detail
-
correctLeastConfidentSegments
public java.util.ArrayList correctLeastConfidentSegments(InstanceList ilist, java.lang.Object[] startTags, java.lang.Object[] continueTags)
- Specified by:
correctLeastConfidentSegmentsin interfaceTransducerCorrector- Parameters:
ilist- original Transducer InstanceListstartTags- start segment tags (B-)continueTags- continue segment tags (I-) TransducerConfidenceEstimator}- Returns:
- a list of
Sequences corresponding to the corrected tagging of each Instance inilist. Note that these corrections will not affect tokens outside of the corrected segment.
-
-