-
Notifications
You must be signed in to change notification settings - Fork 605
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
practical-nlp/Ch4/03_Word2Vec_Example.ipynb #5
Comments
Thank you @sai-teja-ponugoti for bringing this to our notice. Would you like to send a PR to fix this issue? |
Hi @varunp2k, I believe the fix would be a modification of
In the example, we're categorizing the tweet by taking the average of all of the word vectors for each word in the sentence. This also makes sense because previously count_for_this is included in the code, but never ends up being used.
Here is the updated cell in its entirety:
|
Looks good @brianalexander |
@brainalexander have you sent one already? |
@sai-teja-ponugoti |
In the above Jupiter notebook, in function:
The feature vectors are not averaged, directly sum of the word embeddings is appended as the feature, whereas the function description indicates that the vectors will be averaged.
The text was updated successfully, but these errors were encountered: