I am using the VADER sentiment analysis tool in Python's nltk library. I am wondering if anyone has a clue as to how to remove words from the lexicon without having to do so manually in the text file. Using lexicon.update(new_words) allows one to add new words. Can we use something similar to remove words as well?
So, to add new words, we can use:
sia.lexicon.update(new_words)
I've tried to use lexicon.remove to delete words, but this does not work. Any advice would be appreciated.