|
|||||||||
| 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.stanford.nlp.pipeline.Annotator |
|---|
Annotator.Requirement |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
GenderAnnotator()
|
|
GenderAnnotator(boolean verbose,
java.lang.String mapping)
|
|
| Method Summary | |
|---|---|
void |
annotate(Annotation annotation)
Given an annotation, perform a task on this annotaiton. |
java.util.Set<Annotator.Requirement> |
requirementsSatisfied()
Returns a set of requirements for which tasks this annotator can provide. |
java.util.Set<Annotator.Requirement> |
requires()
Returns the set of tasks which this annotator requires in order to perform. |
| 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)
Annotator
annotate in interface Annotatorpublic java.util.Set<Annotator.Requirement> requires()
Annotator
requires in interface Annotatorpublic java.util.Set<Annotator.Requirement> requirementsSatisfied()
Annotator
requirementsSatisfied in interface Annotator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||