Class LexiconAnnotator

    • Constructor Detail

      • LexiconAnnotator

        public LexiconAnnotator​(@NonNull
                                @NonNull AnnotationType type,
                                @NonNull
                                @NonNull String lexiconName)
        Instantiates a new LexiconAnnotator.
        Parameters:
        type - the type of annotation to create.
        lexiconName - the name of the lexicon to perform annotation based on
      • LexiconAnnotator

        public LexiconAnnotator​(@NonNull
                                @NonNull AnnotationType type,
                                @NonNull
                                @NonNull Lexicon lexicon)
        Instantiates a new LexiconAnnotator.
        Parameters:
        type - the type of annotation to create.
        lexicon - the lexicon to perform annotation based on
    • Method Detail

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