OpenIE没有得到与演示中所说的相同的结果

时间:2016-11-23 13:00:21

标签: stanford-nlp

我只是下载并尝试使用OpenIE。我在演示中使用相同的句子"出生在一个小镇,她乘坐午夜火车到任何地方。"

在这个页面中:enter link description here它说会有三个三胞胎被提取,但是从下面它缺少三胞胎"她采取了午夜火车"。这些信息很重要。

你能告诉我为什么我能得到与演示中相同的结果吗? 是否需要设置参数?

感谢。

tom@tom-Aspire-E5-572G:~/Downloads/stanford-corenlp-full-2015-12-09$ cat input.txt
Born in a small town, she took the midnight train going anywhere.
tom@tom-Aspire-E5-572G:~/Downloads/stanford-corenlp-full-2015-12-09$ java  -cp "*" -Xmx1000m edu.stanford.nlp.naturalli.OpenIE ./input.txt
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator tokenize
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ssplit
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator pos
Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [2.6 sec].
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator lemma
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator depparse
Loading depparse model file: edu/stanford/nlp/models/parser/nndep/english_UD.gz ... 
PreComputed 100000, Elapsed Time: 2.157 (s)
Initializing dependency parser done [5.1 sec].
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator natlog
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator openie
Loading clause searcher from edu/stanford/nlp/models/naturalli/clauseSearcherModel.ser.gz...done [0.73 seconds]
Processing file: ./input.txt
All files have been queued; awaiting termination...
1.0 she Born in small town
1.0 she Born in town
DONE processing files. 0 exceptions encountered.

1 个答案:

答案 0 :(得分:0)

我要把这一点归结为解析树很难。底层依赖解析器 - 实际上是底层依赖表示 - 在论文的发布和代码的最新版本之间发生了变化。例如,“她出生在一个小镇,她乘坐午夜火车。”工作正常。