|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.fst.confidence.ConstrainedViterbiTransducerCorrector
public class ConstrainedViterbiTransducerCorrector
Corrects a subset of the Segment
s produced by a Transducer
. It's most useful to find the Segment
s 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 Summary | |
---|---|
ConstrainedViterbiTransducerCorrector(Transducer model)
|
|
ConstrainedViterbiTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator,
Transducer model)
|
Method Summary | |
---|---|
java.util.ArrayList |
correctLeastConfidentSegments(InstanceList ilist,
java.lang.Object[] startTags,
java.lang.Object[] continueTags)
|
java.util.ArrayList |
correctLeastConfidentSegments(InstanceList ilist,
java.lang.Object[] startTags,
java.lang.Object[] continueTags,
boolean findIncorrect)
Returns an ArrayList of corrected Sequences. |
java.util.ArrayList |
getLeastConfidentSegments()
Returns the least confident segments from each sequence in the previous call to correctLeastConfidentSegments |
java.util.ArrayList |
getLeastConfidentSegments(InstanceList ilist,
java.lang.Object[] startTags,
java.lang.Object[] continueTags)
Returns the least confident segments in ilist |
java.util.Vector |
getSegmentConfidences()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstrainedViterbiTransducerCorrector(TransducerConfidenceEstimator confidenceEstimator, Transducer model)
public ConstrainedViterbiTransducerCorrector(Transducer model)
Method Detail |
---|
public java.util.Vector getSegmentConfidences()
public java.util.ArrayList getLeastConfidentSegments()
correctLeastConfidentSegments
public java.util.ArrayList getLeastConfidentSegments(InstanceList ilist, java.lang.Object[] startTags, java.lang.Object[] continueTags)
ilist
ilist
- test instancesstartTags
- indicate the beginning of segmentscontinueTages
- indicate "inside" of segments
Segment
s, one for each instance, that is least confidentpublic java.util.ArrayList correctLeastConfidentSegments(InstanceList ilist, java.lang.Object[] startTags, java.lang.Object[] continueTags)
correctLeastConfidentSegments
in interface TransducerCorrector
public java.util.ArrayList correctLeastConfidentSegments(InstanceList ilist, java.lang.Object[] startTags, java.lang.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 one
Sequence
s corresponding to the corrected
tagging of each instance in ilist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |