Class CoreNlpGenderAnnotator

  • All Implemented Interfaces:
    edu.stanford.nlp.pipeline.Annotator, IOOPAnnotator

    public class CoreNlpGenderAnnotator
    extends edu.stanford.nlp.pipeline.GenderAnnotator
    implements edu.stanford.nlp.pipeline.Annotator, IOOPAnnotator
    • Constructor Detail

      • CoreNlpGenderAnnotator

        public CoreNlpGenderAnnotator()
      • CoreNlpGenderAnnotator

        public CoreNlpGenderAnnotator​(String annotatorName,
                                      Properties props)
    • Method Detail

      • getSerializer

        protected ISerializer getSerializer()
      • setSerializer

        protected void setSerializer​(ISerializer serializer)
      • getScorer

        protected IScorer getScorer()
      • setScorer

        protected void setScorer​(IScorer scorer)
      • annotate

        public void annotate​(edu.stanford.nlp.pipeline.Annotation annotation)
        Specified by:
        annotate in interface edu.stanford.nlp.pipeline.Annotator
        Overrides:
        annotate in class edu.stanford.nlp.pipeline.GenderAnnotator
      • annotateEntityMention

        public void annotateEntityMention​(edu.stanford.nlp.util.CoreMap entityMention,
                                          String gender)
        Overrides:
        annotateEntityMention in class edu.stanford.nlp.pipeline.GenderAnnotator
      • requirementsSatisfied

        public Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requirementsSatisfied()
        Specified by:
        requirementsSatisfied in interface edu.stanford.nlp.pipeline.Annotator
        Overrides:
        requirementsSatisfied in class edu.stanford.nlp.pipeline.GenderAnnotator
      • 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