As title states, code is as follows:
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
new_words = {
'': 4.0,
}
sia = SentimentIntensityAnalyzer()
sia.lexicon.update(new_words)
sia.polarity_scores('')
The given emoji is considered to be negative by the original lexicon, but I want it to be positive instead. However, updating according to the above code does not seem to work at all:
{'neg': 1.0, 'neu': 0.0, 'pos': 0.0, 'compound': -0.34}