edu.cmu.minorthird.text.learn
Class MultiClassifierAnnotator

java.lang.Object
  extended by edu.cmu.minorthird.text.AbstractAnnotator
      extended by edu.cmu.minorthird.text.learn.MultiClassifierAnnotator
All Implemented Interfaces:
Annotator, java.io.Serializable

public class MultiClassifierAnnotator
extends AbstractAnnotator
implements java.io.Serializable

An annotator that uses a learned Classifier to mark up document spans.

See Also:
Serialized Form

Constructor Summary
MultiClassifierAnnotator(SpanFeatureExtractor fe, MultiClassifier mc, java.lang.String[] multiSpanProp)
           
 
Method Summary
 void doAnnotate(MonotonicTextLabels labels)
          The implementation for this method annotates labels in-line.
 java.lang.String explainAnnotation(TextLabels labels, Span documentSpan)
          The implementation for this method should explain how annotation would be added to some part of the text base.
 SpanFeatureExtractor getFE()
          The feature extractor applied to candidate spans.
 MultiClassifier getMultiClassifier()
           
 java.lang.String[] getMultiSpanProperty()
          If non-null, the property used to encode the output of the classifier.
 
Methods inherited from class edu.cmu.minorthird.text.AbstractAnnotator
annotate, annotatedCopy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiClassifierAnnotator

public MultiClassifierAnnotator(SpanFeatureExtractor fe,
                                MultiClassifier mc,
                                java.lang.String[] multiSpanProp)
Method Detail

getFE

public SpanFeatureExtractor getFE()
The feature extractor applied to candidate spans.


getMultiClassifier

public MultiClassifier getMultiClassifier()

getMultiSpanProperty

public java.lang.String[] getMultiSpanProperty()
If non-null, the property used to encode the output of the classifier.


doAnnotate

public 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