Skip to content
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

Python 3 #11

Closed
mp31415 opened this issue May 13, 2016 · 2 comments
Closed

Python 3 #11

mp31415 opened this issue May 13, 2016 · 2 comments

Comments

@mp31415
Copy link

mp31415 commented May 13, 2016

The following change in lambda syntax in vaderSentiment.py was required to run the tool with Python 3.5:

def make_lex_dict(f): return dict(map(lambda wm: (wm[0], float(wm[1])), [wmsr.strip().split('\t')[0:2] for wmsr in open(f) ]))

@mp31415
Copy link
Author

mp31415 commented May 13, 2016

Sorry for submitting the same issue twice - there is some problem with github UI.

michael-erasmus added a commit to michael-erasmus/vaderSentiment that referenced this issue Nov 12, 2016
ronjohn4 added a commit to ronjohn4/vaderSentiment that referenced this issue Dec 2, 2016
In Python 3.5 cjhutto#18
Python 3 cjhutto#11
Python 3 cjhutto#10
Print statement format not supported in Python 3.x cjhutto#19
@cjhutto
Copy link
Owner

cjhutto commented Dec 13, 2016

Thanks! The new update (with new pip install) has better compatibility support for Python 3.

@cjhutto cjhutto closed this as completed Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants