我一直在使用R的sentiment
包来进行情绪分析。当一些微不足道的否定因为我的许多文件都是积极的时候,我感到震惊。例如
library("sentiment")
classify_polarity("Not good")
# POS NEG POS/NEG BEST_FIT
# [1,] "8.78232285939751" "0.445453222112551" "19.7154772340574" "positive"
我不确定这背后会发生什么。有人可以澄清一下吗?
答案 0 :(得分:3)
谢谢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