2016-11-23 55 views
0

我只是下載並嘗試OpenIE。我在演示中使用了同樣的一句話:「出生在一個小鎮上,她帶着午夜火車去任何地方。」OpenIE沒有得到和它在演示中說的相同的結果

在這個網頁:enter link description here它表示將會有三個三胞胎被提取,但是從下面它會錯過三倍「她坐過午夜火車」。這些信息很重要。

您能告訴我爲什麼我無法獲得與演示中相同的結果嗎? 有沒有需要設置的參數?

謝謝。

[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

我打算把它解釋成分析樹很困難。底層的依賴關係解析器 - 實際上是底層的依賴關係表示 - 在發表論文和最近版本的代碼之間發生了變化。例如,「出生在一個小鎮上,她坐上了午夜火車。」行得通。

+0

感謝您的幫助。剛剛嘗試過它適用於您的修改後的句子,我可能會在未來嘗試更舊的版本。 – tom