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

Update 07_sentiment_with_doc2vec.py #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RomanGurinovich
Copy link

When run on custom text file with vocab len != 7500, close_word = word_dictionary_rev[nearest[k]] throws KeyValue error.

Looking in the range of the len(word_dictionary_rev)]) generalizes the code.

When run on custom text file with vocab len != 7500, `close_word = word_dictionary_rev[nearest[k]]` throws KeyValue error. 

Looking in the range of the len(word_dictionary_rev)]) generalizes the code.
@nfmcclure
Copy link
Owner

Ah yes, thanks for this. I'll merge this in the next week or so. I want to keep this active as a reminder that I should fix the jupyter notebook as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants