edu.cmu.minorthird.text
Class StringAnnotator

java.lang.Object
  extended by edu.cmu.minorthird.text.AbstractAnnotator
      extended by edu.cmu.minorthird.text.StringAnnotator
All Implemented Interfaces:
Annotator
Direct Known Subclasses:
MinorTagger, POSTagger

public abstract class StringAnnotator
extends AbstractAnnotator

An abstract annotator that is based on marking up substrings within a string, using the CharAnnotation class.

Author:
ksteppe

Field Summary
protected  java.lang.String providedAnnotation
           
 
Constructor Summary
StringAnnotator()
           
 
Method Summary
protected abstract  CharAnnotation[] annotateString(java.lang.String spanString)
          Override this class to provide the actual annotations for a span.
protected  java.lang.String[] closedTypes()
           
protected  void doAnnotate(MonotonicTextLabels labels)
          The implementation for this method annotates labels in-line.
 
Methods inherited from class edu.cmu.minorthird.text.AbstractAnnotator
annotate, annotatedCopy, explainAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providedAnnotation

protected java.lang.String providedAnnotation
Constructor Detail

StringAnnotator

public StringAnnotator()
Method Detail

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.