• stanford nlp 3.9.1 关于 Exception in thread "main" java.lang.IllegalArgumentException: No annotator named mention 错误


    Exception in thread "main" java.lang.IllegalArgumentException: No annotator named mention
    at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:151)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:495)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:201)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:194)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:181)

    大概率是你的 StanfordCoreNLP-chinese.properties 版本有可能不一致,比如你用3.8.0的StanfordCoreNLP-chinese.properties 来运行3.9.1的nlp

    StanfordCoreNLP-chinese.properties在中文模型包中

  • 相关阅读:
    oracle plsql 统计
    oracle plsql 自定义异常
    oracle plsql 异常
    oracle 游标
    oracle 存储函数,更新库存
    oracle TRUNC()函数
    plsql 的三种循环
    plsql if
    plsql 记录型变量
    CAS示例环境部署及配置
  • 原文地址:https://www.cnblogs.com/herosoft/p/8818435.html
Copyright © 2020-2023  润新知