Java Reference
In-Depth Information
Adding annotator tokenize
TokenizerAnnotator: No tokenizer type provided. Defaulting
to PTBTokenizer.
Adding annotator ssplit
edu.stanford.nlp.pipeline.AnnotatorImplementations:
Adding annotator pos
Reading POS tagger model from edu/stanford/nlp/models/
pos-tagger/english-left3words/
english-left3words-distsim.tagger ... done [2.5 sec].
Adding annotator lemma
Adding annotator ner
Loading classifier from edu/stanford/nlp/models/ner/
english.all.3class.distsim.crf.ser.gz ... done [6.7 sec].
Loading classifier from edu/stanford/nlp/models/ner/
english.muc.7class.distsim.crf.ser.gz ... done [5.0 sec].
Loading classifier from edu/stanford/nlp/models/ner/
english.conll.4class.distsim.crf.ser.gz ... done [5.5 sec].
Adding annotator parse
Loading parser from serialized file edu/stanford/nlp/models/
lexparser/englishPCFG.ser.gz ...done [0.9 sec].
Adding annotator dcoref
When the annotate method is applied, we can use the timingInformation meth-
od to see how long each step of the process took, as shown here:
System.out.println("Total time: " +
pipeline.timingInformation());
The output of the previous pipeline is as follows:
Total time: Annotation pipeline timing information:
TokenizerAnnotator: 0.0 sec.
WordsToSentencesAnnotator: 0.0 sec.
POSTaggerAnnotator: 0.0 sec.
MorphaAnnotator: 0.1 sec.
NERCombinerAnnotator: 0.0 sec.
ParserAnnotator: 2.5 sec.
DeterministicCorefAnnotator: 0.1 sec.
TOTAL: 2.8 sec. for 8 tokens at 2.9 tokens/sec.
Search WWH ::




Custom Search