edu.cmu.minorthird.text.learn
Class SequenceAnnotatorLearner.SequenceAnnotator
java.lang.Object
edu.cmu.minorthird.text.AbstractAnnotator
edu.cmu.minorthird.text.learn.SequenceAnnotatorLearner.SequenceAnnotator
- All Implemented Interfaces:
- Annotator, ExtractorAnnotator, Visible, java.io.Serializable
- Enclosing class:
- SequenceAnnotatorLearner
public static class SequenceAnnotatorLearner.SequenceAnnotator
- extends AbstractAnnotator
- implements java.io.Serializable, Visible, ExtractorAnnotator
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SequenceAnnotatorLearner.SequenceAnnotator
public SequenceAnnotatorLearner.SequenceAnnotator(SequenceClassifier seqClassifier,
SpanFeatureExtractor fe,
java.lang.String annotationType)
SequenceAnnotatorLearner.SequenceAnnotator
public SequenceAnnotatorLearner.SequenceAnnotator(SequenceClassifier seqClassifier,
SpanFeatureExtractor fe,
Extraction2TaggingReduction reduction,
java.lang.String annotationType)
getSpanType
public java.lang.String getSpanType()
- Description copied from interface:
ExtractorAnnotator
- The spanType used to encode the spans extracted by the
ExtractorAnnotator.
- Specified by:
getSpanType
in interface ExtractorAnnotator
getSpanFeatureExtractor
public SpanFeatureExtractor getSpanFeatureExtractor()
getReduction
public Extraction2TaggingReduction getReduction()
getSequenceClassifier
public SequenceClassifier getSequenceClassifier()
doAnnotate
protected void doAnnotate(MonotonicTextLabels labels)
- Description copied from class:
AbstractAnnotator
- The implementation for this method annotates labels in-line.
- Specified by:
doAnnotate
in class AbstractAnnotator
explainAnnotation
public java.lang.String explainAnnotation(TextLabels labels,
Span documentSpan)
- Description copied from class:
AbstractAnnotator
- The implementation for this method should explain how annotation
would be added to some part of the text base.
- Specified by:
explainAnnotation
in interface Annotator
- Specified by:
explainAnnotation
in class AbstractAnnotator
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toGUI
public Viewer toGUI()
- Description copied from interface:
Visible
- Create a view of this object
- Specified by:
toGUI
in interface Visible