vaderSentiment icon indicating copy to clipboard operation
vaderSentiment copied to clipboard

Vader returning not accurate result

Open ImSanjayChintha opened this issue 4 years ago • 0 comments

I am trying to pass a statement 'Nothing, Everything is great.' to vader, it is actually returning as 'Negative' but it is actually 'Positive' statment.

from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer analyser = SentimentIntensityAnalyzer()

def sentiment_analyzer_scores(sentence): score = analyser.polarity_scores(sentence) #max_key = max(score, key=score.get) #print(status[max_key], score[max_key] * 100) if(score['compound'] >= 0.05): return 'Positive' elif (score['compound'] > -0.05 and score['compound'] < 0.05): return 'Neutral' elif (score['compound'] <= -0.05): return 'Negative' else: return 'None'

sentiment_analyzer_scores("Nothing. Everything is great") // Returns Negative, but it is actually positive statement.

ImSanjayChintha avatar Nov 24 '20 14:11 ImSanjayChintha