【问题标题】:Activate makeCopulaHead in Stanford CoreNLP parser在斯坦福 CoreNLP 解析器中激活 makeCopulaHead
【发布时间】:2014-10-23 10:12:33
【问题描述】:

我想使用 Stanford CoreNLP Parser 解析一个带有“makeCopulaHead”标志的句子。

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

I am tall.

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

我试过了:

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

.xml 文件包含 cop 关系 :(

我也尝试过(xml 输出的错误: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 

但其实是一样的……

【问题讨论】:

    标签: nlp stanford-nlp


    【解决方案1】:

    我终于找到了解决办法,正确的是:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多