NLTK Vader SentimentIntensityAnalyzer Bigram

问题描述

对于 Python 中的 VADER SentimentIntensityAnalyzer,是否可以添加二元规则?我尝试用两个词输入更新词典,但它没有改变极性分数。提前致谢!

from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

analyser = SentimentIntensityAnalyzer()

#returns a compound score of -0.296
print(analyser.polarity_scores('no issues'))

analyser.lexicon['no issues'] = 0.0
#still returns a compound score of -0.296
print(analyser.polarity_scores('no issues'))

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)