public class ParserAnnotator extends Object implements Annotator
CoreAnnotations.SentencesAnnotation) under
CoreAnnotations.TreeAnnotation).Annotator.Requirement| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_FLAGS |
BINARIZED_TREES_REQUIREMENT, CLEAN_XML_REQUIREMENT, DETERMINISTIC_COREF_REQUIREMENT, GENDER_REQUIREMENT, GUTIME_REQUIREMENT, HEIDELTIME_REQUIREMENT, LEMMA_REQUIREMENT, NER_REQUIREMENT, NUMBER_REQUIREMENT, PARSE_AND_TAG, PARSE_REQUIREMENT, PARSE_TAG_BINARIZED_TREES, POS_REQUIREMENT, QUANTIFIABLE_ENTITY_NORMALIZATION_REQUIREMENT, RELATION_EXTRACTOR_REQUIREMENT, SSPLIT_REQUIREMENT, STANFORD_CLEAN_XML, STANFORD_DETERMINISTIC_COREF, STANFORD_GENDER, STANFORD_LEMMA, STANFORD_NER, STANFORD_PARSE, STANFORD_POS, STANFORD_REGEXNER, STANFORD_RELATION, STANFORD_SENTIMENT, STANFORD_SSPLIT, STANFORD_TOKENIZE, STANFORD_TRUECASE, STEM_REQUIREMENT, SUTIME_REQUIREMENT, TIME_WORDS_REQUIREMENT, TOKENIZE_AND_SSPLIT, TOKENIZE_REQUIREMENT, TOKENIZE_SSPLIT_NER, TOKENIZE_SSPLIT_PARSE, TOKENIZE_SSPLIT_PARSE_NER, TOKENIZE_SSPLIT_POS, TOKENIZE_SSPLIT_POS_LEMMA, TRUECASE_REQUIREMENT| Constructor and Description |
|---|
ParserAnnotator(boolean verbose,
int maxSent) |
ParserAnnotator(LexicalizedParser parser,
boolean verbose,
int maxSent) |
ParserAnnotator(LexicalizedParser parser,
boolean verbose,
int maxSent,
Function<Tree,Tree> treeMap) |
ParserAnnotator(String parserLoc,
boolean verbose,
int maxSent,
String[] flags) |
ParserAnnotator(String annotatorName,
Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(Annotation annotation)
Given an Annotation, perform a task on this Annotation.
|
static String[] |
convertFlagsToArray(String parserFlags) |
Set<Annotator.Requirement> |
requirementsSatisfied()
Returns a set of requirements for which tasks this annotator can
provide.
|
Set<Annotator.Requirement> |
requires()
Returns the set of tasks which this annotator requires in order
to perform.
|
static String |
signature(String annotatorName,
Properties props) |
public static final String[] DEFAULT_FLAGS
public ParserAnnotator(boolean verbose,
int maxSent)
public ParserAnnotator(String parserLoc, boolean verbose, int maxSent, String[] flags)
public ParserAnnotator(LexicalizedParser parser, boolean verbose, int maxSent)
public ParserAnnotator(LexicalizedParser parser, boolean verbose, int maxSent, Function<Tree,Tree> treeMap)
public ParserAnnotator(String annotatorName, Properties props)
public static String signature(String annotatorName, Properties props)
public void annotate(Annotation annotation)
Annotatorpublic Set<Annotator.Requirement> requires()
Annotatorpublic Set<Annotator.Requirement> requirementsSatisfied()
AnnotatorrequirementsSatisfied in interface Annotator