|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.pipeline.GenderAnnotator
public class GenderAnnotator
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.
| 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 |
|---|
public GenderAnnotator()
public GenderAnnotator(boolean verbose,
java.lang.String mapping)
| Method Detail |
|---|
public void annotate(Annotation annotation)
annotate in interface Annotator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||