|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.AbstractAnnotator
public abstract class AbstractAnnotator
Generic implementation of an annotator.
Constructor Summary | |
---|---|
AbstractAnnotator()
|
Method Summary | |
---|---|
void |
annotate(MonotonicTextLabels labels)
Add some extra information to the labels. |
TextLabels |
annotatedCopy(TextLabels labels)
Create a copy of the labels with some additional information added. |
protected abstract void |
doAnnotate(MonotonicTextLabels labels)
The implementation for this method annotates labels in-line. |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAnnotator()
Method Detail |
---|
protected abstract void doAnnotate(MonotonicTextLabels labels)
public abstract java.lang.String explainAnnotation(TextLabels labels, Span documentSpan)
explainAnnotation
in interface Annotator
public final void annotate(MonotonicTextLabels labels)
Annotator
annotate
in interface Annotator
public final TextLabels annotatedCopy(TextLabels labels)
Annotator
annotatedCopy
in interface Annotator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |