Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

'annotators' config option ignored (default set of annotators always loaded) #8

Open
saidimu opened this issue Aug 18, 2015 · 2 comments
Assignees
Labels

Comments

@saidimu
Copy link

saidimu commented Aug 18, 2015

Here's my config option:

var options = {
    'nlpPath'   : './corenlp',
    'version'   : '3.5.2',
    'annotators': ['ssplit']
  };

coreNLP = new NLP.StanfordNLP(options);
coreNLP.loadPipelineSync();

It doesn't matter what I specify as the 'annotators' key, the following annotators are always loaded:

Adding annotator tokenize
TokenizerAnnotator: No tokenizer type provided. Defaulting to PTBTokenizer.
Adding annotator ssplit
Adding annotator tokenize
Adding annotator ssplit
Adding annotator pos
Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [3.6 sec].
Adding annotator lemma
Adding annotator ner
Loading classifier from edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz ... done [11.5 sec].
Loading classifier from edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz ... done [8.0 sec].
Loading classifier from edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz ... done [6.1 sec].
Initializing JollyDayHoliday for SUTime from classpath: edu/stanford/nlp/models/sutime/jollyday/Holidays_sutime.xml as sutime.binder.1.
Reading TokensRegex rules from edu/stanford/nlp/models/sutime/defs.sutime.txt
Reading TokensRegex rules from edu/stanford/nlp/models/sutime/english.sutime.txt
Reading TokensRegex rules from edu/stanford/nlp/models/sutime/english.holidays.sutime.txt
Adding annotator parse
Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [1.9 sec].
Adding annotator dcoref
Adding annotator depparse
Loading depparse model file: edu/stanford/nlp/models/parser/nndep/english_UD.gz ... 
PreComputed 100000, Elapsed Time: 4.764 (s)
Initializing dependency parser done [15.8 sec].
Adding annotator quote
@hiteshjoshi
Copy link
Owner

loadPipelineSync has some bugs, I might fix them over the weekend, can you try using Async mode.

@hiteshjoshi hiteshjoshi self-assigned this Aug 18, 2015
@saidimu
Copy link
Author

saidimu commented Aug 18, 2015

Confirmed that loadPipelineSync is the problem. Async mode works as expected.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants