|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.AbstractAnnotator edu.cmu.minorthird.text.learn.ClassifierAnnotator
public class ClassifierAnnotator
An annotator that uses a learned Classifier to mark up document spans.
Constructor Summary | |
---|---|
ClassifierAnnotator(SpanFeatureExtractor fe,
Classifier c,
java.lang.String spanType,
java.lang.String spanProp)
|
|
ClassifierAnnotator(SpanFeatureExtractor fe,
Classifier c,
java.lang.String spanType,
java.lang.String spanProp,
java.lang.String candidateType)
|
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. |
java.lang.String |
getCandidateType()
If non-null, the spanType corresponding to candidate spans to be classified. |
Classifier |
getClassifier()
|
SpanFeatureExtractor |
getFE()
The feature extractor applied to candidate spans. |
java.lang.String |
getSpanProperty()
If non-null, the property used to encode the output of the classifier. |
java.lang.String |
getSpanType()
If non-null, the spanType used to encode the positive predictions of the classifier (which should be a BinaryClassifier). |
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 |
---|
public ClassifierAnnotator(SpanFeatureExtractor fe, Classifier c, java.lang.String spanType, java.lang.String spanProp, java.lang.String candidateType)
public ClassifierAnnotator(SpanFeatureExtractor fe, Classifier c, java.lang.String spanType, java.lang.String spanProp)
Method Detail |
---|
public SpanFeatureExtractor getFE()
public Classifier getClassifier()
public java.lang.String getSpanProperty()
public java.lang.String getSpanType()
public java.lang.String getCandidateType()
public void doAnnotate(MonotonicTextLabels labels)
AbstractAnnotator
doAnnotate
in class AbstractAnnotator
public java.lang.String explainAnnotation(TextLabels labels, Span documentSpan)
AbstractAnnotator
explainAnnotation
in interface Annotator
explainAnnotation
in class AbstractAnnotator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |