vaderSentiment icon indicating copy to clipboard operation
vaderSentiment copied to clipboard

How can I add my own set of words in the dataset?

Open gmehta1996 opened this issue 4 years ago • 1 comments

Is it possible to add more words into the words list and if yes how to do it and can I also add a phrase like 2-3 words together to make the program understand that these particular words together are either positive,negative,etc.

Suppose I use it in a review of a vehicle (sentence given below):

'It's vibrates too much while over speeding.'

It gives the following result:

{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0} The result is neutral but it should be negative . So. how can I add these types in the dataset to get a better result??

gmehta1996 avatar Aug 29 '20 09:08 gmehta1996

Yea, go to C:\Users\yourUserName\AppData\Roaming\nltk_data\sentiment and you'll see a .txt file in vader_lexicon.zip You can add words, edit existing words' scores or delete some of the words

SemihDurmaz54 avatar Dec 09 '20 20:12 SemihDurmaz54