|
|||||||||
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.StartEndLengthAnnotator
public class StartEndLengthAnnotator
Annotator based on classifiers for start, labels, and length.
Constructor Summary | |
---|---|
StartEndLengthAnnotator(BinaryClassifier start,
BinaryClassifier end,
SpanFeatureExtractor fe,
java.util.Map<java.lang.Integer,java.lang.Integer> lengthMap,
int totalPosSpans,
java.lang.String annotationType)
Create an annotator. |
Method Summary | |
---|---|
protected 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. |
SpanFinder |
getEndFinder()
Return something that finds ends (for debugging). |
java.lang.String |
getSpanType()
The spanType used to encode the spans extracted by the ExtractorAnnotator. |
SpanFinder |
getStartFinder()
Return something that finds beginnings (for debugging). |
double |
getThreshold()
|
void |
setThreshold(double t)
|
java.lang.String |
toString()
|
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, wait, wait, wait |
Methods inherited from interface edu.cmu.minorthird.text.Annotator |
---|
annotate, annotatedCopy |
Constructor Detail |
---|
public StartEndLengthAnnotator(BinaryClassifier start, BinaryClassifier end, SpanFeatureExtractor fe, java.util.Map<java.lang.Integer,java.lang.Integer> lengthMap, int totalPosSpans, java.lang.String annotationType)
Method Detail |
---|
public void setThreshold(double t)
public double getThreshold()
public java.lang.String getSpanType()
ExtractorAnnotator
getSpanType
in interface ExtractorAnnotator
public SpanFinder getStartFinder()
public SpanFinder getEndFinder()
protected 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
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |