CoreNLP服务器分配';副署长';所有依赖项

CoreNLP服务器分配';副署长';所有依赖项,nlp,stanford-nlp,Nlp,Stanford Nlp,对“”的以下请求将标签“dep”分配给所有依赖项。有人能解释这种行为吗?对我来说这似乎是个问题,或者这可能是来自公共端点的某种限制(速率限制)?但是,返回正确的响应 wget --post-data "Having earned a doctorate as a physical chemist, Merkel entered politics in the wake of the Revolutions of 1989, briefly serving as a deputy spokespe

对“”的以下请求将标签“dep”分配给所有依赖项。有人能解释这种行为吗?对我来说这似乎是个问题,或者这可能是来自公共端点的某种限制(速率限制)?但是,返回正确的响应

wget --post-data "Having earned a doctorate as a physical chemist, Merkel entered politics in the wake of the Revolutions of 1989, briefly serving as a deputy spokesperson for the first democratically-elected East German Government in 1990. Following German reunification in 1990, Merkel was elected to the Bundestag for Stralsund-Nordvorpommern-Rügen in the state of Mecklenburg-Vorpommern, a seat she has held ever since. Merkel was later appointed as the Minister for Women and Youth in 1991 under Chancellor Helmut Kohl, later becoming the Minister for the Environment in 1994. After Kohl was defeated in 1998, Merkel was elected Secretary-General of the CDU before becoming the party's first woman leader two years later in the aftermath of a donations scandal that toppled Wolfgang Schäuble." 'http://corenlp.run/?properties={"tokenize.whitespace": "true", "annotators": "tokenize,ssplit,pos,lemma,ner,parse, depparse,mention,coref", "outputFormat": "json",'timeout': 30000}' -O -
对于其他输入,parse属性响应看起来很奇怪。Web界面的答案再次正确。错误解析响应的示例:

"parse":"(X ... (X their) (X stomachs) (X while) (X simultaneously) (X appealing) (X to) (X their) (X vanity.) (X The) ...)" 
我尝试了公共端点,因为最新的编译版本受到了这种影响,Github代码库构建指令似乎过时了。我完全错过了一本指南,它描述了如何从Github repo构建命运包中提供的*.jar

更新:


只是在本地实例和最新的CoreNLP服务器上尝试了相同的请求。同样的问题。只有web界面返回正确的响应。如果我删除解析注释器,它就会工作。但是,我需要两种注释

很有可能,您达到了服务器默认的
parse.maxlen
限制60。您可以通过在传递给服务器的属性中显式设置属性
parse.maxlen=
来覆盖它。但是,要注意:超过这个长度的句子可能需要很长时间来解析


如果您只需要依赖项,我建议改用
depparse
注释器。这就是演示使用的内容,也是为什么它可以在较长的句子上工作。

我实际上希望在给定的“文档”级别上对每个句子和coref进行解析和deppasses。我明白问题所在。由于我使用空白标记器,并且所有句号都是标记的一部分,因此
ssplit
将整个输入记录为一个句子。我的错,谢谢你指点我!每个句子都不会命中parse.maxlen值,因此这应该不是问题。你知道一个指南解释了谁应该从Github代码编译CoreNLP服务器吗?编译服务器应该像运行
ant
(或者
ant jar
制作jar一样简单。注意,您还需要下载相关的模型jar(自述文件上的链接)。然后,除了您需要的
lib/
目录中的任何库之外,将它们都放在类路径中。应该加上。非常感谢你!