Class DefaultCategoryAnnotator

  • All Implemented Interfaces:
    Serializable

    public class DefaultCategoryAnnotator
    extends Annotator
    Default annotator for basic categories, which is limited to nouns.
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultCategoryAnnotator

        public DefaultCategoryAnnotator()
    • Method Detail

      • annotateImpl

        protected 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
      • getProvider

        public String getProvider​(Language language)
        Description copied from class: Annotator
        Gets the provider information for this annotator.. The provider information should relate to a version number, model used, or something else to identify the settings of the annotator.
        Overrides:
        getProvider in class Annotator
        Returns:
        the provider
      • 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