Class SentenceLevelAnnotator

    • Constructor Detail

      • SentenceLevelAnnotator

        public SentenceLevelAnnotator()
    • Method Detail

      • annotate

        protected abstract void annotate​(Annotation sentence)
        Annotates a single sentence.
        Parameters:
        sentence - The sentence to annotate
      • annotateImpl

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

        protected Set<AnnotatableType> furtherRequires()
        The annotation types beyond sentence and token that are also required. By default will return an empty Set.
        Returns:
        The annotations beyond sentence and token that are required for this annotator to perform annotation
      • requires

        public final 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