當我添加了「NER」註釋我StanfordCoreNLP對象的管道,我可以看到它加載3種型號,這需要大量的時間:斯坦福大學CoreNLP NER-annotator爲什麼默認加載3個模型?
Adding annotator ner
Loading classifier from edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz ... done [10.3 sec].
Loading classifier from edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz ... done [10.1 sec].
Loading classifier from edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz ... done [6.5 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
有沒有辦法,只是加載一個子集,它會平等地工作?特別是,我不確定爲什麼它有7級模型時加載3級和4級NER模型,我想知道是否不加載這兩個模型仍然可以工作。
謝謝!真的很感激它! –