public class GrammaticalStructureAnnotator
extends edu.stanford.nlp.pipeline.SentenceAnnotator
Modifier and Type | Class and Description |
---|---|
static class |
GrammaticalStructureAnnotator.GrammaticalStructureAnnotation
Annotation tags
|
Modifier and Type | Field and Description |
---|---|
private static long |
DEFAULT_MAX_TIME |
private static int |
DEFAULT_N_THREADS |
private edu.stanford.nlp.trees.GrammaticalStructureFactory |
factory
Grammatical Structure Factory
|
private long |
maxTime
Maximum parse time (in milliseconds) for a sentence
|
private int |
nThreads
Threads
|
(package private) static java.lang.String |
STANFORD_GRAMMATICAL_STRUCTURE |
private boolean |
verbose |
DEFAULT_REQUIREMENTS, STANFORD_CLEAN_XML, STANFORD_COLUMN_DATA_CLASSIFIER, STANFORD_COREF, STANFORD_COREF_MENTION, STANFORD_DEPENDENCIES, STANFORD_DETERMINISTIC_COREF, STANFORD_DOCDATE, STANFORD_ENTITY_MENTIONS, STANFORD_GENDER, STANFORD_KBP, STANFORD_LEMMA, STANFORD_LINK, STANFORD_MWT, STANFORD_NATLOG, STANFORD_NER, STANFORD_OPENIE, STANFORD_PARSE, STANFORD_POS, STANFORD_QUOTE, STANFORD_QUOTE_ATTRIBUTION, STANFORD_REGEXNER, STANFORD_RELATION, STANFORD_SENTIMENT, STANFORD_SSPLIT, STANFORD_TOKENIZE, STANFORD_TOKENSREGEX, STANFORD_TRUECASE, STANFORD_UD_FEATURES
Constructor and Description |
---|
GrammaticalStructureAnnotator(java.lang.String annotatorName,
java.util.Properties properties)
Constructor Annotator
|
Modifier and Type | Method and Description |
---|---|
protected void |
doOneFailedSentence(edu.stanford.nlp.pipeline.Annotation annotation,
edu.stanford.nlp.util.CoreMap sentence) |
protected void |
doOneSentence(edu.stanford.nlp.pipeline.Annotation annotation,
edu.stanford.nlp.util.CoreMap sentenceMap) |
static edu.stanford.nlp.trees.GrammaticalStructureFactory |
makeGrammaticalStructureFactory(java.lang.String languageName) |
protected long |
maxTime() |
protected int |
nThreads() |
java.util.Set<java.lang.Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> |
requirementsSatisfied() |
java.util.Set<java.lang.Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> |
requires() |
private final boolean verbose
private final int nThreads
private static final int DEFAULT_N_THREADS
private final long maxTime
private static final long DEFAULT_MAX_TIME
private final edu.stanford.nlp.trees.GrammaticalStructureFactory factory
static final java.lang.String STANFORD_GRAMMATICAL_STRUCTURE
public GrammaticalStructureAnnotator(java.lang.String annotatorName, java.util.Properties properties)
annotatorName
- annotator nameproperties
- propertiespublic static edu.stanford.nlp.trees.GrammaticalStructureFactory makeGrammaticalStructureFactory(java.lang.String languageName)
public java.util.Set<java.lang.Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requires()
public java.util.Set<java.lang.Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requirementsSatisfied()
protected int nThreads()
nThreads
in class edu.stanford.nlp.pipeline.SentenceAnnotator
protected long maxTime()
maxTime
in class edu.stanford.nlp.pipeline.SentenceAnnotator
protected void doOneSentence(edu.stanford.nlp.pipeline.Annotation annotation, edu.stanford.nlp.util.CoreMap sentenceMap)
doOneSentence
in class edu.stanford.nlp.pipeline.SentenceAnnotator
protected void doOneFailedSentence(edu.stanford.nlp.pipeline.Annotation annotation, edu.stanford.nlp.util.CoreMap sentence)
doOneFailedSentence
in class edu.stanford.nlp.pipeline.SentenceAnnotator