如何在斯坦福NLP情绪分析中得到正确的句子情感值

时间:2015-12-09 14:23:18

标签: java stanford-nlp sentiment-analysis

我在http://nlp.stanford.edu/~socherr/stanfordSentimentTreebank.zip

下载了斯坦福NLP情绪分析数据集

斯坦福NLP情绪分析网站为http://nlp.stanford.edu/sentiment/code.html

在数据集中,有一个11855个句子的列表,并且有短语的情感值,但我无法找到每个句子的真实情绪分析。

例如,句子Offers that rare combination of entertainment and education .。这句话的真实情感价值是什么?

1 个答案:

答案 0 :(得分:0)

你应该得到文件trainDevTestTrees_PTB.zip,这里有:http://nlp.stanford.edu/sentiment/code.html

这是由"火车,开发,PTB树格式的测试拆分"

链接的文件

它的情绪值为4.树中最左边的数字代表整个句子值。

树的形式(得分(子树)(子树))。

叶子的形式(得分标记)。