我一直在使用R的sentiment
包进行情绪分析。当一些微不足道的负面因素对我的许多文件产生积极影响时,我感到震惊。例如
library("sentiment")
classify_polarity("Not good")
# POS NEG POS/NEG BEST_FIT
# [1,] "8.78232285939751" "0.445453222112551" "19.7154772340574" "positive"
我不确定这背后发生了什么。有人可以澄清一下吗?
谢谢 rawr。我发现这很有帮助。
>library(qdap)
> polarity("Not Good")
all total.sentences total.words ave.polarity sd.polarity stan.mean.polarity
1 all 1 2 -0.707 NA NA
> polarity("It's cool but not great")
all total.sentences total.words ave.polarity sd.polarity stan.mean.polarity
1 all 1 5 -0.894 NA NA
> polarity("It's awesome")
all total.sentences total.words ave.polarity sd.polarity stan.mean.polarity
1 all 1 2 0.707 NA NA