cjhutto / vaderSentiment

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.
MIT License
4.47k stars 1.01k forks source link

Vader gives wrong result for some sentences #36

Closed Chitrank-Dixit closed 6 years ago

Chitrank-Dixit commented 6 years ago

Hello Everyone,

So far Vader has helped me a lot in polarizing the data, I am analyzing on. I got all the analysis right and really like its sentiment intensity scoring.

I am getting just one problem with the sentences like

"Without a doubt excellent idea", "neg": 0.422, "neu": 0.281, "pos": 0.297

"No payment and returning problems" "neg": 0.62, "neu": 0.38, "pos": 0

It is giving wrong results

cjhutto commented 6 years ago

I've added "Without {a} doubt" to the list of negation tokens, so it should appropriately flip the sentiment polarity while maintaining the intensity calculations. When I run my test, I now get the following: Without a doubt, excellent idea. {'neg': 0.305, 'pos': 0.451, 'compound': 0.296, 'neu': 0.244}

For the second example, I would say that VADER is giving correct results... as written, the text appears to be a complaint about getting no payment as well as having problems returning.