问题标签 [stanford-nlp-server]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
588 浏览

nlp - 斯坦福 CoreNLP 服务器的 JSON 响应缺少 RelationExtractor 注释

我正在处理一个简单的句子来测试斯坦福大学的RelationExtractor

微软总部位于纽约。

(它不是)

当我在 Java 中注释句子时,通过直接使用 CoreNLP jar 文件,我得到了想要的结果 - CoreNLP在MicrosoftNew York之间找到了OrgBased_In关系。

但是,将相同的句子发送到CoreNLP 服务器,如下所示:

生成一个不包含任何关系数据的 json 响应:

我可以在 CoreNLP 服务器终端上看到加载了关系提取模型

我在这里想念什么?

谢谢!

0 投票
1 回答
111 浏览

stanford-nlp - 仅从 corenlp 服务器调用 openie 模块

一旦 coreNLP 服务器启动,我只想调用 openIE 模块。我从shell试过这个:

几秒钟后,日志冻结,没有任何反应。有人能帮助我吗?