-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Vectorize word2vec.predict_output_word for speed #3153
Vectorize word2vec.predict_output_word for speed #3153
Commits on May 18, 2021
-
[Fix] gensim/models/word2vec.py: in method predict_output_word, chang…
…ed a call to sum to numpy.sum to gain performance.
Mathis committedMay 18, 2021 Configuration menu - View commit details
-
Copy full SHA for 6a94492 - Browse repository at this point
Copy the full SHA 6a94492View commit details -
[Feat] gensim.models.word2vec.Word2Vec.predict_output_word: added pos…
…sibility for the user to input a list of word indices as parameter 'context' instead of a list of words.
Mathis committedMay 18, 2021 Configuration menu - View commit details
-
Copy full SHA for 91d5dca - Browse repository at this point
Copy the full SHA 91d5dcaView commit details
Commits on May 25, 2021
-
Word2Vec.predict_output_word: Changed handling of ints and strs, tryi…
…ng to trying to make it more compact and versatile.
Configuration menu - View commit details
-
Copy full SHA for 84258b4 - Browse repository at this point
Copy the full SHA 84258b4View commit details
Commits on May 26, 2021
-
Fixed docstring of predict_output_word.
Mathis committedMay 26, 2021 Configuration menu - View commit details
-
Copy full SHA for 47a7fe5 - Browse repository at this point
Copy the full SHA 47a7fe5View commit details
Commits on Jun 15, 2021
-
Simplified
predict_output_word
changes.* Retained the suggested `sum`->`np.sum` replacement, which has been tested to yield significant runtime gains. * Dropped unnecessary type/value checks that are already run when calling the `KeyedVectors.__isin__` dunder method. * Corrected the docstring to accurately document the supported inputs (which were already compatible prior to the PR this commit is a part of).
Configuration menu - View commit details
-
Copy full SHA for ba00d98 - Browse repository at this point
Copy the full SHA ba00d98View commit details
Commits on Jul 1, 2021
-
Added tests for gensim.Word2Vec.predict_output_word() when context co…
…ntains ints.
Mathis Demay committedJul 1, 2021 Configuration menu - View commit details
-
Copy full SHA for 679a086 - Browse repository at this point
Copy the full SHA 679a086View commit details
Commits on Jul 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ed8ec36 - Browse repository at this point
Copy the full SHA ed8ec36View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb9c2a6 - Browse repository at this point
Copy the full SHA bb9c2a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04cc137 - Browse repository at this point
Copy the full SHA 04cc137View commit details