在Stanford CoreNLP解析器中激活makeCopulaHead

时间:2014-10-23 10:12:34

标签: nlp stanford-nlp

我想用Stanford CoreNLP Parser解析一个带有标志的句子" makeCopulaHead"激活。

在我的文件input.txt中,我有以下句子:

I am tall.

目标是在输出依赖树中没有copula关系(cop)。

我试过了:

java -cp "*" -mx8g edu.stanford.nlp.pipeline.StanfordCoreNLP -makeCopulaHead -file input.txt 

.xml文件包含警察关系:(

我也尝试过(xml-output的错误:https://mailman.stanford.edu/pipermail/java-nlp-user/2013-January/002959.html?):

java -cp "*" -mx8g edu.stanford.nlp.pipeline.StanfordCoreNLP -makeCopulaHead -file input.txt -outputFormat text 

但它是一样的......

1 个答案:

答案 0 :(得分:3)

我终于找到了解决方案,正确的路线是:

java -cp "*" -mx8g edu.stanford.nlp.pipeline.StanfordCoreNLP -parse.flags " -makeCopulaHead" -file input.txt 

不要忘记“-makeCopulaHead”中的空格。

相关问题