public class TypedDependenciesAnnotator
extends edu.stanford.nlp.pipeline.SentenceAnnotator
Modifier and Type | Field and Description |
---|---|
private static long |
DEFAULT_MAX_TIME |
private static int |
DEFAULT_NTHREADS |
private long |
flags |
private long |
flags2 |
private long |
maxTime
Maximum parse time (in milliseconds) for a sentence
|
private boolean |
merge2to1 |
private int |
nThreads
Threads
|
(package private) static java.lang.String |
STANFORD_TYPEDDEPENDENCIES |
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 |
---|
TypedDependenciesAnnotator(java.lang.String annotatorName,
java.util.Properties properties)
Constructor
|
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) |
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 boolean merge2to1
private final long flags
private final long flags2
private final int nThreads
private static final int DEFAULT_NTHREADS
private final long maxTime
private static final long DEFAULT_MAX_TIME
static final java.lang.String STANFORD_TYPEDDEPENDENCIES
public TypedDependenciesAnnotator(java.lang.String annotatorName, java.util.Properties properties)
annotatorName
- annotator nameproperties
- propertiespublic 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