Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vader returning not accurate result #118

Open
ImSanjayChintha opened this issue Nov 24, 2020 · 0 comments
Open

Vader returning not accurate result #118

ImSanjayChintha opened this issue Nov 24, 2020 · 0 comments

Comments

@ImSanjayChintha
Copy link

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 ImSanjayChintha changed the title Vader returning not accurate results Vader returning not accurate result Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant