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