-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codec Issue #4
Comments
Hi @jd155, Can you try encoding the string in unicode? Try adding a eg. Let me know if that works or not. |
@besirkurtulmus Yes - this worked, thanks! |
@jd155 Hi, could you tell me where did you find the |
@jd155 @besirkurtulmus Also, where did you encode the string? Since the error occurs at |
Thanks! The new update (with new pip install) has better compatibility support for Python 3 to address many of the encoding/decoding issues. The lexicon dictionary file has been encoded with UTF-8 unicode by default (I hope) for better cross-OS performance. I've also implemented code to automatically detect where the dictionary file is installed (as long as you didn't change it's location relative to where the actual "vaderSentiment.py" file got installed), so you no longer any need to manually put a copy of the dictionary file next to your python file (in the same folder)... from what I can tell, my implementation should work across OSs. |
Hi @cjhutto
When I run the code from the NLTK tutorial - http://www.nltk.org/howto/sentiment.html - about using Vader I get the error below. I worked out that I had to move the vader_lexicon.txt file into my NLTK sentiment folder, but that didn't solve this Codec problem.
Have run the code with both python 2 and 3.
Any ideas what I can do?
The text was updated successfully, but these errors were encountered: