-
-
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.
Fixed issue when using add_vector with FastTextKeyedVectors (#3389)
Since Gensim 4.0, 'key' in FastTextKeyedVectors always returns True by design. The proper way to check if a key already exists is with 'key' in FastTextKeyedVectors.key_to_index. Co-authored-by: dcarron <dcarron@idiap.ch>
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
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