Class AbstractAnnotator

java.lang.Object
com.basistech.rosette.dm.AbstractAnnotator
All Implemented Interfaces:
Annotator

public abstract class AbstractAnnotator extends Object implements Annotator
This abstract class provides the canonical mapping from annotating with string input to annotating with AnnotatedText input.
  • Constructor Details

    • AbstractAnnotator

      public AbstractAnnotator()
  • Method Details

    • annotate

      public AnnotatedText annotate(CharSequence input)
      Description copied from interface: Annotator
      Annotates raw text with attributes. For example, a base linguistics annotator may accept raw text and annotate it with token attributes.
      Specified by:
      annotate in interface Annotator
      Parameters:
      input - data to process
      Returns:
      annotated data