【发布时间】:2020-05-26 19:08:26
【问题描述】:
Eclipse JRE 4.15.0
我将stanford-corenlp-4.0.0.jar(从https://stanfordnlp.github.io/CoreNLP/api.html 加载)添加到项目/构建路径/库/类路径。
创建CoreDocument 实例时
CoreDocument document = new CoreDocument("str");
Eclipse 自动提示
import edu.stanford.nlp.pipeline.StanfordCoreNLP;
但在执行期间导入不起作用:
Exception in thread "main" java.lang.NoClassDefFoundError: edu/stanford/nlp/pipeline/CoreDocument
at main.CoreNLP.main(CoreNLP.java:35)
Caused by: java.lang.ClassNotFoundException: edu.stanford.nlp.pipeline.CoreDocument
如何解决自动建议和运行时导入之间的这种不一致问题?
【问题讨论】: