public class ConstrainedViterbiTransducerCorrector 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). The corrected
segment then propagates to other labelings in the sequence using
"constrained viterbi" -- a viterbi calculation that requires the
path to pass through the corrected segment states.| Constructor and Description |
|---|
ConstrainedViterbiTransducerCorrector(Transducer model) |
ConstrainedViterbiTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator,
Transducer model) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
correctLeastConfidentSegments(InstanceList ilist,
Object[] startTags,
Object[] continueTags) |
ArrayList |
correctLeastConfidentSegments(InstanceList ilist,
Object[] startTags,
Object[] continueTags,
boolean findIncorrect)
Returns an ArrayList of corrected Sequences.
|
ArrayList |
getLeastConfidentSegments()
Returns the least confident segments from each sequence in the
previous call to
correctLeastConfidentSegments |
ArrayList |
getLeastConfidentSegments(InstanceList ilist,
Object[] startTags,
Object[] continueTags)
Returns the least confident segments in
ilist |
Vector |
getSegmentConfidences() |
public ConstrainedViterbiTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator, Transducer model)
public ConstrainedViterbiTransducerCorrector(Transducer model)
public Vector getSegmentConfidences()
public ArrayList getLeastConfidentSegments()
correctLeastConfidentSegmentspublic ArrayList getLeastConfidentSegments(InstanceList ilist, Object[] startTags, Object[] continueTags)
ilistilist - test instancesstartTags - indicate the beginning of segmentscontinueTages - indicate "inside" of segmentsSegments, one for each instance, that is least confidentpublic ArrayList correctLeastConfidentSegments(InstanceList ilist, Object[] startTags, Object[] continueTags)
correctLeastConfidentSegments in interface TransducerCorrectorpublic ArrayList correctLeastConfidentSegments(InstanceList ilist, Object[] startTags, Object[] continueTags, boolean findIncorrect)
ilist - test instancesstartTags - indicate the beginning of segmentscontinueTages - indicate "inside" of segmentsfindIncorrect - true if we should cycle through least
confident segments until find an incorrect oneSequences corresponding to the corrected
tagging of each instance in ilistCopyright © 2019 JULIE Lab, Germany. All rights reserved.