【问题标题】:Getting Stanford Core NLP through Maven通过 Maven 获取 Stanford Core NLP
【发布时间】:2014-12-18 16:14:44
【问题描述】:

我正在做一个在 Java 中使用斯坦福 NLP 进行文本分类的项目。为了获取 API,我在我的 POM 文件中添加了依赖项。

   <dependency>
       <groupId>edu.stanford.nlp</groupId>
       <artifactId>stanford-corenlp</artifactId>
       <version>3.5.0</version>
   </dependency>
   <dependency>
       <groupId>edu.stanford.nlp</groupId>
       <artifactId>stanford-corenlp</artifactId>
       <version>3.5.0</version>
       <classifier>models</classifier>
   </dependency>

当我进行 maven 更新/安装时,我收到以下错误消息:

 Failure to transfer edu.stanford.nlp:stanford-corenlp:jar:models:3.5.0 from    http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact edu.stanford.nlp:stanford-corenlp:jar:models:3.5.0 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000.

我在这里发现了一个类似的问题 - Maven dependency:get does not download Stanford NLP model files。但是,我无法在任何地方找到解决方案。有什么帮助吗?

【问题讨论】:

    标签: java maven stanford-nlp


    【解决方案1】:

    也许 Maven 处于不一致的状态?您是否尝试过类似的方法:

    mvn clean install -U
    

    我使用的依赖项——看起来和你上面的一样——是:

    <dependency>
      <groupId>edu.stanford.nlp</groupId>
      <artifactId>stanford-corenlp</artifactId>
      <version>3.5.0</version>
    </dependency>
    <dependency>
      <groupId>edu.stanford.nlp</groupId>
      <artifactId>stanford-corenlp</artifactId>
      <version>3.5.0</version>
      <classifier>models</classifier>
    </dependency>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-19
      • 2015-05-16
      • 1970-01-01
      • 1970-01-01
      • 2012-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多