-
Notifications
You must be signed in to change notification settings - Fork 362
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
GensimBackend #71
Comments
|
Could you share how you have initialized the model? Also, which version of KeyBERT and Gensim are you using? |
The last response has been a while ago, so I'll be closing this issue for now. Having said that, let me know if you are still experiencing this issue and I'll make sure to reopen it. |
I have faced with the same problem, how I have initialized the model:
the versions I am using:
and the error message:
BR. |
@dopc The way Gensim accesses the embeddings in 4.0 was chanced and not yet updated in KeyBERT. For now, using Gensim < 4.0 should work without any issues. I'll make sure it gets updated in the upcoming released. |
Thanks so much! |
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. See https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4
The text was updated successfully, but these errors were encountered: