stanford nlp 3.9.1 关于 Exception in thread "main" java.lang.IllegalArgumentException: No annotator n...

Exception in thread "main" java.lang.IllegalArgumentException: No annotator named mention
at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:151)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:495)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:201)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:194)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:181)

 

大概率是你的 StanfordCoreNLP-chinese.properties 版本有可能不一致,比如你用3.8.0的StanfordCoreNLP-chinese.properties 来运行3.9.1的nlp

StanfordCoreNLP-chinese.properties在中文模型包中

转载于:https://www.cnblogs.com/herosoft/p/8818435.html

你可能感兴趣的:(stanford nlp 3.9.1 关于 Exception in thread "main" java.lang.IllegalArgumentException: No annotator n...)