Class AbstractAnnotator

    • Constructor Detail

      • AbstractAnnotator

        public AbstractAnnotator()
    • Method Detail

      • getSerializer

        protected ISerializer getSerializer()
      • setSerializer

        protected void setSerializer​(ISerializer serializer)
      • getScorer

        protected IScorer getScorer()
      • setScorer

        protected void setScorer​(IScorer scorer)
      • requirementsSatisfied

        public Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requirementsSatisfied()
        Specified by:
        requirementsSatisfied in interface edu.stanford.nlp.pipeline.Annotator
      • requires

        public abstract Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requires()
        Specified by:
        requires in interface edu.stanford.nlp.pipeline.Annotator
      • annotate

        public abstract void annotate​(edu.stanford.nlp.pipeline.Annotation annotation)
        Specified by:
        annotate in interface edu.stanford.nlp.pipeline.Annotator
      • score

        public void score​(edu.stanford.nlp.pipeline.CoreDocument document)
        Specified by:
        score in interface IOOPAnnotator
      • serialize

        public void serialize​(edu.stanford.nlp.pipeline.CoreDocument document,
                              com.fasterxml.jackson.databind.node.ObjectNode json)
        Specified by:
        serialize in interface IOOPAnnotator
      • serializeAggregateDocument

        public void serializeAggregateDocument​(edu.stanford.nlp.pipeline.CoreDocument document,
                                               com.fasterxml.jackson.databind.node.ObjectNode json)
        Specified by:
        serializeAggregateDocument in interface IOOPAnnotator
      • isPunctuationMark

        public boolean isPunctuationMark​(edu.stanford.nlp.ling.CoreLabel token)
      • hasPunctuationMark

        public boolean hasPunctuationMark​(edu.stanford.nlp.ling.CoreLabel token)
      • isDictionaryWord

        public boolean isDictionaryWord​(edu.stanford.nlp.ling.CoreLabel token)
      • toAlphaNumeric

        public String toAlphaNumeric​(String s)
      • getContextWords

        public List<edu.stanford.nlp.ling.CoreLabel> getContextWords​(edu.stanford.nlp.pipeline.CoreDocument document,
                                                                     edu.stanford.nlp.ling.CoreLabel token)