Class ArabicSegmenterAnnotator

  • All Implemented Interfaces:
    Annotator

    public class ArabicSegmenterAnnotator
    extends Object
    implements Annotator
    This class will add segmentation information to an Annotation. It assumes that the original document is a List of sentences under the SentencesAnnotation.class key, and that each sentence has a TextAnnotation.class key. This Annotator adds corresponding information under a CharactersAnnotation.class key prior to segmentation, and a TokensAnnotation.class key with value of a List of CoreLabel after segmentation. Based on the ChineseSegmenterAnnotator by Pi-Chuan Chang.
    Author:
    Will Monroe
    • Constructor Detail

      • ArabicSegmenterAnnotator

        public ArabicSegmenterAnnotator()
      • ArabicSegmenterAnnotator

        public ArabicSegmenterAnnotator​(boolean verbose)
      • ArabicSegmenterAnnotator

        public ArabicSegmenterAnnotator​(String segLoc,
                                        boolean verbose)
      • ArabicSegmenterAnnotator

        public ArabicSegmenterAnnotator​(String name,
                                        Properties props)
    • 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