【发布时间】:2015-11-01 08:58:10
【问题描述】:
我一直在尝试从 stanford corenlp 获取情绪值,但似乎在交互式 shell 中,情绪没有作为输出给出。
我已经使用官网给出的命令指定了注解器。
java -cp "*" -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref, sentiment
另外,当我试图获取情绪时,首先要求其他注释者,在提供之后我根本没有提供任何输出。
我在这两种情况下都得到了交互式外壳。喜欢-NLP> 但是,没有任何情绪的迹象——正面或负面。
另外,如果我们使用 SentimentPipeline 而不是 nlp.pipeline。它给人的感觉。有什么方法可以通过交互式 shell 获得,或者如果可能的话,有什么方法可以将 SentimentPipeline 与 pexpect 一起使用?
【问题讨论】:
标签: stanford-nlp sentiment-analysis pexpect interactive-shell