VADER Sentiment Analysis. VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media, and works well on texts from other domains.
The first 'good' was negative when doing the negation check. However, when the program goes to the second 'good',
i = words_and_emoticons.index(item)
will point to the index of the first 'good' and thus incorrectly return a negative count. Many issues found by other users are related to this coding error.
A solution would be:
for i in range(0, len(words_and_emoticons)):
then use words_and_emoticons[i] to loop through all words.
In Line 264:
This is unfortunately wrong. Take the following sentence as an example:
The first 'good' was negative when doing the negation check. However, when the program goes to the second 'good',
will point to the index of the first 'good' and thus incorrectly return a negative count. Many issues found by other users are related to this coding error.
A solution would be: