Java 斯坦福大学的CoreNLP并不存在

Java 斯坦福大学的CoreNLP并不存在,java,stanford-nlp,file-exists,not-exists,Java,Stanford Nlp,File Exists,Not Exists,我的代码开头有以下内容: 导入twitter4j.*; 导入java.util.List; 导入java.util.Properties; 导入java.io.*; 导入java.util.*; 导入edu.stanford.nlp.ling.core注释; 导入edu.stanford.nlp.neural.rnn.rnn注释; 导入edu.stanford.nlp.pipeline.Annotation; 导入edu.stanford.nlp.pipeline.StanfordCoreNL

我的代码开头有以下内容:

导入twitter4j.*; 导入java.util.List; 导入java.util.Properties; 导入java.io.*; 导入java.util.*; 导入edu.stanford.nlp.ling.core注释; 导入edu.stanford.nlp.neural.rnn.rnn注释; 导入edu.stanford.nlp.pipeline.Annotation; 导入edu.stanford.nlp.pipeline.StanfordCoreNLP; 导入edu.stanford.nlp.touction.mountain注释; 导入edu.stanford.nlp.trees.Tree;
导入edu.stanford.nlp.util.CoreMap 您好,您需要确保发行版中的所有jar文件都在您的类路径上。根据您是从命令行运行还是在IDE中运行,这将有所不同


这个链接解释了类路径的概念:

在将斯坦福CoreNLP安装到Docker容器中之前,我一直很难安装它。现在,您可以分两步安装和运行它:

从Dockerhub中提取图像:

$docker pull anwala/stanfordcorenlp

要运行CoreNLP服务器,请执行以下操作:

$docker run-rm-d-p 9000:9000-名称stanfordcorenlp anwala/stanfordcorenlp

要通过浏览器/命令行/自定义等方式使用服务器: