stanford-nlp - 使用 wikidict 注释时的斯坦福 NER 4.2.2 问题
问题描述
我正在尝试启动 wikidict 访问。我正在使用Java 15 中https://stanfordnlp.github.io/CoreNLP/entitylink.html文档中的示例注释字符串,并利用了两个 Maven 依赖项,包括stanford-corenlp 4.2.2
代码和模型。
-annotators tokenize,ssplit,pos,lemma,ner,entitylink -file example.txt
我的 Java 代码是
props.setProperty("annotators", "tokenize,ssplit,pos,lemma,ner,entitylink + -file wikidict.tab.gz");
我收到以下错误和跟踪:
java.lang.IllegalArgumentException:没有名为 -file 的注释器
0 = {StackTraceElement@3486} "edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:151)" 1 = {StackTraceElement@3487} "edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java: 253)" 2 = {StackTraceElement@3488} "edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:194)" 3 = {StackTraceElement@3489} "edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP. java:190)" 4 = {StackTraceElement@3490} "org.newcashel.NERProcessor.establishNERPipeline(NERProcessor.java:47)" 5 = {StackTraceElement@3491} "org.newcashel.DocManagerMain.main(DocManagerMain.java:16) "
该文件是从stanford-corenlp-4.2.1-models-english--kbp.jar
. 我发现了一些关于 3.9 中已解决的相关问题的讨论,但没有关于 entitylink 注释的内容。
解决方案
推荐阅读
- html - 修改帖子时如何在CKEditor上添加nofollow属性
- linux - 我可以从主要编号和次要编号获取设备结构吗
- android - 使用简单工具栏时如何修复 android.view.InflateException
- iview-ui - 使用单选选择表中的特定行
- javascript - CSS 和 JS 文件有时无法在我们的 Wordpress 网站上加载
- unity3d - 如何在统一 3d 中单击“选项卡”按钮时聚焦输入字段
- angular - 如何使用 web api 和 angular 在表单提交上上传文件
- django - Django:我可以链接 2 个模型字段而不是模型类吗?
- react-native - React-native-tag-autocomplete:如何在建议列表中添加滚动条
- java - Java String spit 使用正则表达式和单个正斜杠,后面没有斜杠