You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
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.
The text was updated successfully, but these errors were encountered: