2016-11-23 14 views
0

OpenIEをダウンロードして試してみました。私はデモで同じ文章を使っています。「小さな町で生まれ、真夜中の列車をどこにでも持って行きました」OpenIEはデモで述べたのと同じ結果を得ていません

このページでは:enter link description here 3つのトリプレットが抽出されると言われていましたが、その下からトリプレット「彼女は真夜中の列車を取った」がありません。この情報は重要です。

デモと同じ結果が得られない理由を教えてください。 設定する必要があるパラメータはありますか?

ありがとうございました。

[email protected]:~/Downloads/stanford-corenlp-full-2015-12-09$ cat input.txt 
Born in a small town, she took the midnight train going anywhere. 
[email protected]:~/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. 
+0

まだ回答がありませんでした。 "小さな町で生まれた彼女は、真夜中の列車をどこにでも持って行きました。"誰もそのような文章のテストをして、情報も見逃していないかどうかを調べることができます。 – tom

答えて

0

私はこれを難解な構文解析ツリーまでチョークします。根本的な依存関係パーサー - そして実際にはその基礎となる依存関係の表現 - は、論文の出版と最新のコードのリリースの間で変更されました。たとえば、「小さな町で生まれた彼女は真夜中の電車に乗った」 OKです。

+0

助けてくれてありがとう。ちょうどあなたの変更された文章のために働いてみました、私は将来古いバージョンを試すことがあります。 – tom

関連する問題