Skip to content

KeyedVector removed in Gensim 4.0.0.#99

Open
AI-Ahmed wants to merge 1 commit intoyandexdataschool:fall22from
AI-Ahmed:patch-2
Open

KeyedVector removed in Gensim 4.0.0.#99
AI-Ahmed wants to merge 1 commit intoyandexdataschool:fall22from
AI-Ahmed:patch-2

Conversation

@AI-Ahmed
Copy link

AttributeError: The vocab attribute was removed from KeyedVector in Gensim 4.0.0.

Use KeyedVector's .key_to_index dict, .index_to_key list, and methods .get_vecattr(key, attr) and .set_vecattr(key, attr, new_val) instead.

AttributeError: The vocab attribute was removed from KeyedVector in Gensim 4.0.0.

> Use KeyedVector's .key_to_index dict, .index_to_key list, and methods .get_vecattr(key, attr) and .set_vecattr(key, attr, new_val) instead.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant