0

Python 内の VADER SentimentIntensityAnalyzer の場合、バイグラム ルールを追加する方法はありますか? 2 つの単語を入力してレキシコンを更新しようとしましたが、極性スコアは変わりませんでした。前もって感謝します!

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'))
4

1 に答える 1