Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 导入斯坦福nlp Intellij_Java_Intellij Idea_Stanford Nlp_Lemmatization - Fatal编程技术网

Java 导入斯坦福nlp Intellij

Java 导入斯坦福nlp Intellij,java,intellij-idea,stanford-nlp,lemmatization,Java,Intellij Idea,Stanford Nlp,Lemmatization,我在使用斯坦福柠檬汁机时遇到问题。 当我使用Intellij IDE时,我尝试通过Dependencies窗口导入它,但我无法通过这种方式访问所有类 有没有办法在Intellij上正确导入stanford-english-corenlp-models-current.jar和stanford-corenlp-models-current.jar?正如上面提到的,您只是导入了错误的文件 首先,下载CorenLP3.7.0(测试版) 在上面的屏幕截图中,单击红色按钮下载文件,该文件涵盖了运行Cor

我在使用斯坦福柠檬汁机时遇到问题。 当我使用Intellij IDE时,我尝试通过Dependencies窗口导入它,但我无法通过这种方式访问所有类


有没有办法在Intellij上正确导入stanford-english-corenlp-models-current.jar和stanford-corenlp-models-current.jar?

正如上面提到的,您只是导入了错误的文件

首先,下载CorenLP3.7.0(测试版)

在上面的屏幕截图中,单击红色按钮下载文件,该文件涵盖了运行CoreNLP的所有内容

第二,右键单击要导入jar的模块,打开“打开模块设置”窗格,您可能会看到如下图片

单击绿色加号按钮导入所有内容

注意:这是我指向您的目录。

然后单击“应用”和“确定”

完成了,享受吧

参考:

(CoreNLP官方网页)


(如何导入中文Intellij中的jar)

您的意思是什么,但我无法通过这种方式访问所有类。?所有这些导入:import edu.stanford.nlp.ling.CoreAnnotations.LemmaAnnotation;导入edu.stanford.nlp.ling.CoreAnnotations.SentencesAnotation;导入edu.stanford.nlp.ling.CoreAnnotations.TokensAnnotation;导入edu.stanford.nlp.ling.corelab;导入edu.stanford.nlp.pipeline.Annotation;导入edu.stanford.nlp.pipeline.StanfordCoreNLP;导入edu.stanford.nlp.util.CoreMap;找不到。我只有导入edu.stanford.nlp.demo.*;看起来您使用了一个错误的jar文件。确保得到正确的jar我已经下载了4个不同的jar文件。。。github页面上的两个版本:以及3.6和3.7版本,您当前正在导入模型文件。您需要导入带有编译类的jar文件,还需要导入StanfordCorenlp所依赖的各种jar。您在stanfordnlp.github.io/CoreNLP下载的文件夹中有您需要导入IntelliJ的所有JAR。导入该文件夹中的所有jar。事实上,我没有下载好的jar。。。我的坏--“谢谢,伙计们,它现在工作得很好!我无法让intellij直接添加模型jar,但是添加整个库目录就像魔术一样。谢谢!