2015-08-09 240 views
1

Interactive shell with all annotators including sentiment我一直試圖從stanford corenlp獲得的情感價值,但它似乎在交互式shell中,情緒並沒有作爲輸出。如何通過stanford corenlp交互式shell獲取情緒?

我使用官方網站給出的命令指定了註釋器

java -cp "*" -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref, sentiment 

而且,當我試圖爲獲得公正的情緒,然後在第一次詢問其他註釋,提供我沒有給任何輸出後。

我得到了兩種情況下的交互式shell。喜歡 - NLP> 但是,沒有情緒的跡象 - 積極或消極。

另外,如果我們使用sentimentPipeline而不是nlp.pipeline。它給人的感覺。有沒有什麼辦法可以通過交互式shell獲得,或者如果可能的話,有什麼辦法可以使用sentimentPipeline和pexpect?

回答

1

old_version我使用的是舊版本的斯坦福corenlp(3.4.1),但在最近的版本(3.5.1)中,它給出了情感。 new_version