edu.stanford.nlp.pipeline
Class GenderAnnotator

java.lang.Object
  extended by edu.stanford.nlp.pipeline.GenderAnnotator
All Implemented Interfaces:
Annotator

public class GenderAnnotator
extends java.lang.Object
implements Annotator

This class adds gender information (MALE / FEMALE) to tokens as GenderAnnotations. It uses the RegexNERSequenceClassifier and a manual mapping from token text to gender labels. Assumes that the Annotation has already been split into sentences, then tokenized into Lists of CoreLabels.

Author:
jtibs

Constructor Summary
GenderAnnotator()
           
GenderAnnotator(boolean verbose, java.lang.String mapping)
           
 
Method Summary
 void annotate(Annotation annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenderAnnotator

public GenderAnnotator()

GenderAnnotator

public GenderAnnotator(boolean verbose,
                       java.lang.String mapping)
Method Detail

annotate

public void annotate(Annotation annotation)
Specified by:
annotate in interface Annotator


Stanford NLP Group