【问题标题】:Trying to use NER (Named Entity Recognition), but I can't get the server running尝试使用 NER(命名实体识别),但我无法让服务器运行
【发布时间】:2018-06-27 02:27:29
【问题描述】:

我一直遵循这个 github 存储库中的说明:https://github.com/caihaoyu/sner。我从官网安装了NER:https://nlp.stanford.edu/software/CRF-NER.html,然后安装了最新版本的Java(JRE)。但是,当我尝试使用 sner repo 自述文件中的命令启动并运行 NER 服务器时,我收到此错误:无法找到或加载主类 .ext.dirs=..lib。

【问题讨论】:

    标签: java python-3.x github stanford-nlp named-entity-recognition


    【解决方案1】:

    有关使用 Stanford CoreNLP 服务器的信息,请参阅此文档:

    总体信息:https://stanfordnlp.github.io/CoreNLP/index.html

    服务器信息:https://stanfordnlp.github.io/CoreNLP/corenlp-server.html

    启动服务器的示例命令:

    java -Xmx12g edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000 -serverProperties myProperties.props
    

    myProperties.props你应该设置

    annotators = tokenize,ssplit,pos,lemma,ner
    

    示例服务器请求:

    wget --post-data 'The quick brown fox jumped over the lazy dog.' 'localhost:9000/?properties={"outputFormat":"json"}' -O -
    

    【讨论】:

      猜你喜欢
      • 2017-06-19
      • 2012-04-20
      • 1970-01-01
      • 2020-11-04
      • 1970-01-01
      • 2019-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多