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

TypeError: '>=' not supported between instances of 'NoneType' and 'float' #1

Open
marymary22 opened this issue Mar 9, 2018 · 0 comments

Comments

@marymary22
Copy link

Hello,
When I try to run the project python sentiment.py data/imdb/ 0
I get those errors
File "sentiment.py", line 251, in
main()
File "sentiment.py", line 31, in main
train_pos_vec, train_neg_vec, test_pos_vec, test_neg_vec = feature_vecs_NLP(train_pos, train_neg, test_pos, test_neg)
File "sentiment.py", line 97, in feature_vecs_NLP
(val >= len(train_pos)/100 or neg_words.get(key) >= len(train_neg)/100) and
TypeError: '>=' not supported between instances of 'NoneType' and 'float'

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

1 participant