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.43k stars 1k forks source link

Doesn't predict negative sentiments as expected. #68

Closed mirzhash closed 4 years ago

mirzhash commented 5 years ago

Vader gives wonderful results for Positive feedbacks but it doesn't predict negative feedbacks correctly such as

  1. 'This is not proper'
  2. i could not understand as to why the marks are deduced'
  3. 'evaluation is not correct' and similar type of feedbacks.

Does anyone know of any hack or how to deal with such feedbacks?

cjhutto commented 5 years ago

You can always expand the lexicon to domain specific context by adding items to your copy of the (tab delimited) vader_lexicon.txt file. For example, if you added lines for:

correct 1
proper  1
understand  1

... is one way to handle it, assuming in your context that those lexical items ALWAYS have a positive valence when they are used (in the initial creation of the lexicon, without context those items were deemed to be neutral). (Note: VADER will handle it if they are negated in the sentence, e.g., 'not proper', 'not correct', and 'not understand' will flip the polarity of sentiment score automatically).

mirzhash commented 5 years ago

Thanks for the suggestion. I will add more words to the lexicon.