-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix WordEmbeddingsKeyedVectors.most_similar (#2461)
* Use topn=None in WordEmbeddingsKeyedVectors.accuracy * Implement and document topn=None * Make topn=None disable indexer in most_similar * Use `or` instead of `{...}` for documenting a union of types * Reword documentation on return value of most_similar and related methods * Use `or` instead of `{...}` for documenting a union of types * Document the return value dimensions of most_similar and related methods * Extend the bugfix from WordEmbeddingsKeyedVectors to Doc2VecKeyedVectors * Test the difference between topn=0 and topn=None in most_similar. * Test that the AnnoyIndexer is disabled in most_similar when topn is None
- Loading branch information
Showing
3 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters