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.33k stars 997 forks source link

Exclude a list of keyword #104

Open Lucasthenoob opened 4 years ago

Lucasthenoob commented 4 years ago

Hello everybody.

Thanks for all the work. I'm trying something for a videogame and I have a list of keyword who would sound negative ('killer' for example). Do you know how could I include this list so it excludes the word from the weight ?

Thanks a lot, Lucas

Deepankar-98 commented 1 year ago

For adding custom value, you must locate the vader_lexicon.txt file in your system and you can add individual words and their scores manually.

The format and explanation is given here: Check https://github.com/cjhutto/vaderSentiment#resources-and-dataset-descriptions point no: 2 for detailed explanation.