Java Reference
In-Depth Information
Property name
Basic annotation class
Usage
tokenize
TokensAnnotation
Tokenization
cleanxml
XmlContextAnnotation
Remove XML tokens
ssplit
SentencesAnnotation
Splits tokens into sentences
pos
PartOfSpeechAnnotation
Creates POS tags
lemma
LemmaAnnotation
Generates lemmas
ner
NamedEntityTagAnnotation
Creates NER tags
regexner
NamedEntityTagAnnotation
Creates NER tags based on regular expressions
sentiment
SentimentCoreAnnotations
Sentiment analysis
truecase
TrueCaseAnnotation
True case analysis
parse
TreeAnnotation
Generates a parse tree
depparse
BasicDependenciesAnnotation Syntactic dependency parser
dcoref
CorefChainAnnotation
Performs coreference resolution
relation
MachineReadingAnnotations
Relation extractor
Consider the following sequence to create a pipeline:
String text = "The robber took the cash and ran.";
Properties props = new Properties();
props.put("annotators",
"tokenize, ssplit, pos, lemma, ner, parse, dcoref");
StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
We get the following output for the annotation process. We can see each annotator as it is
applied:
Search WWH ::




Custom Search