-
-
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.
Add
gensim.models.BaseKeyedVectors.add_entity
method for fill `Keye…
…dVectors` in manual way. Fix #1942 (#1957) * Introduce BaseKeyedVectors.add(...) method * make default count=1 * add test on add_word method * address @menshikh-iv comments * fix test_keyedvectors after removing add_word alias * add __setitem__, add bulk entities processing + some tests on new functionality * addressing @menshikh-iv comments on docstrings * addressing @gojomo comments * adrressing nitpicks * make self.vectors = np.zeros((0, vector_size)) by default * fix pep8
- Loading branch information
1 parent
a781b40
commit 58d560b
Showing
2 changed files
with
135 additions
and
3 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