Closed dandelionred closed 4 years ago
It is nltk 3.5 vader implementation issue. I've got it narrowed down to a single line in their code.
It is nltk 3.5 vader implementation issue. I've got it narrowed down to a single line in their code.
Good find. Another win for open source. THANKS!
nltk issue https://github.com/nltk/nltk/issues/2581
Test script
test.py
(read json strings from stdin and dump vader scores as json objects to stdout):Sample input
sample.json
(source: reddit)Test runs:
I run the tests under virtualenv after this:
pip install nltk numpy vaderSentiment twython
python -m nltk.downloader vader_lexicon
Some more sample json strings (source: reddit):