Class DefaultSentenceAnnotator

  • All Implemented Interfaces:
    Serializable

    public class DefaultSentenceAnnotator
    extends Annotator
    Default Sentence Annotator that works reasonably well on tokenized text.
    Author:
    David B. Bracewell
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultSentenceAnnotator

        public DefaultSentenceAnnotator()
    • Method Detail

      • annotateImpl

        protected void annotateImpl​(Document doc)
        Description copied from class: Annotator
        Annotates a document with one or more AnnotatableType defined in satisfies().
        Specified by:
        annotateImpl in class Annotator
        Parameters:
        doc - The document to annotate
      • requires

        public Set<AnnotatableType> requires()
        Description copied from class: Annotator
        The annotation types required to be on a document before this annotator can annotate
        Overrides:
        requires in class Annotator
        Returns:
        the set of required annotation types
      • satisfies

        public Set<AnnotatableType> satisfies()
        Description copied from class: Annotator
        The set of annotation types that this annotator satisfies by this annotator
        Specified by:
        satisfies in class Annotator
        Returns:
        the set of satisfied annotation types