public class IsolatedSegmentTransducerCorrector extends Object implements TransducerCorrector
Segments produced by a Transducer. It's most useful to find the Segments that the
Transducer is least confident in and correct those using
the true Labeling
(correctLeastConfidenceSegments). Unlike in ConstrainedViterbi, the corrected segment does not affect the
labeling of other segments in the sequence. For comparison.| Constructor and Description |
|---|
IsolatedSegmentTransducerCorrector(Transducer model) |
IsolatedSegmentTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator,
Transducer model) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
correctLeastConfidentSegments(InstanceList ilist,
Object[] startTags,
Object[] continueTags) |
public IsolatedSegmentTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator, Transducer model)
public IsolatedSegmentTransducerCorrector(Transducer model)
public ArrayList correctLeastConfidentSegments(InstanceList ilist, Object[] startTags, Object[] continueTags)
correctLeastConfidentSegments in interface TransducerCorrectorilist - original Transducer InstanceListstartTags - start segment tags (B-)continueTags - continue segment tags (I-)
TransducerConfidenceEstimator}Sequences corresponding to the
corrected tagging of each Instance in ilist. Note
that these corrections will not affect tokens outside of the
corrected segment.Copyright © 2019 JULIE Lab, Germany. All rights reserved.