stanford nlp 3.9.1 关于 Exception in thread "main" java.lang.IllegalArgumentException: No annotator named mention 错误

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在中文模型包中

posted @   深渊中的鱼  阅读(882)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示