Class MorphaAnnotator

  • All Implemented Interfaces:
    Annotator

    public class MorphaAnnotator
    extends Object
    implements Annotator
    This class will add the lemmas of all the words to the Annotation. It assumes that the Annotation already contains the tokenized words as a List<CoreLabel> for a list of sentences under the SentencesAnnotation.class key. The Annotator adds lemma information to each CoreLabel, in the LemmaAnnotation.class.
    Author:
    Jenny Finkel
    • Constructor Detail

      • MorphaAnnotator

        public MorphaAnnotator()
      • MorphaAnnotator

        public MorphaAnnotator​(boolean verbose)
    • Method Detail

      • annotate

        public void annotate​(Annotation annotation)
        Description copied from interface: Annotator
        Given an Annotation, perform a task on this Annotation.
        Specified by:
        annotate in interface Annotator
      • requires

        public Set<Class<? extends CoreAnnotation>> requires()
        Description copied from interface: Annotator
        Returns the set of tasks which this annotator requires in order to perform. For example, the POS annotator will return "tokenize", "ssplit".
        Specified by:
        requires in interface Annotator
      • requirementsSatisfied

        public Set<Class<? extends CoreAnnotation>> requirementsSatisfied()
        Description copied from interface: Annotator
        Returns a set of requirements for which tasks this annotator can provide. For example, the POS annotator will return "pos".
        Specified by:
        requirementsSatisfied in interface Annotator