edu.cmu.minorthird.text
Class StringAnnotator
java.lang.Object
edu.cmu.minorthird.text.AbstractAnnotator
edu.cmu.minorthird.text.StringAnnotator
- All Implemented Interfaces:
- Annotator
- Direct Known Subclasses:
- LBJPOSTagger
public abstract class StringAnnotator
- extends AbstractAnnotator
An abstract annotator that is based on marking up substrings within
a string, using the CharAnnotation class.
This is a bad class, can only define types and not properties
- Author:
- ksteppe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
providedAnnotation
protected java.lang.String providedAnnotation
StringAnnotator
public StringAnnotator()
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
closedTypes
protected java.lang.String[] closedTypes()
annotateString
protected abstract CharAnnotation[] annotateString(java.lang.String spanString)
- Override this class to provide the actual annotations for a span.