【发布时间】:2017-08-25 21:04:20
【问题描述】:
我使用Vader 和TextBlob 来分析新闻标题的情绪,结果好坏参半:许多我认为略微负面的标题被评为中性。以下是几个例子:
Who wants to live in an artificially intelligent future?
# Vader: {'compound': 0.4588, 'pos': 0.273, 'neu': 0.727, 'neg': 0.0}
# TextBlob: Sentiment(polarity=0.2840909090909091, subjectivity=0.40625)
The internet and social media provide huge opportunities for the coming generation, but there’s a dark side from which it must be protected.
# Vader: {'compound': 0.743, 'pos': 0.278, 'neu': 0.722, 'neg': 0.0}
# TextBlob: Sentiment(polarity=0.09444444444444448, subjectivity=0.45555555555555555)
For three months I’ve lived without tech and now realise we need to question its ever-encroaching invasion – before we end up in bed with a sex robot.
# Vader {'compound': 0.0, 'pos': 0.0, 'neu': 1.0, 'neg': 0.0}
# TextBlob Sentiment(polarity=0.0, subjectivity=0.0)
我认为第一句话可以任意解读,但后两句肯定有负面因素:“有阴暗面”和“它不断入侵”,所以我很惊讶维德同时给出了这两个词0 的负疮和 TextBlob 的极性为 0 或更高。
对于情感分析算法来说,这类文本从根本上来说是困难的,还是我可以考虑另一种方法?
我提到的库的吸引力在于我不必制作自己的分类数据集,但如果我可能获得更好的结果,我可能会考虑。
【问题讨论】:
标签: python sentiment-analysis textblob vader