Skip to content
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

Gensim version ImportError: cannot import name 'BaseKeyedVectors' #40

Closed
robbiedood opened this issue Mar 27, 2021 · 2 comments
Closed

Comments

@robbiedood
Copy link

robbiedood commented Mar 27, 2021

Dear fse creator,

Below import gives ImportError: cannot import name 'BaseKeyedVectors'.
from fse import SplitIndexedList

We think it's from the compatibility of gensim, so were wondering what is the gensim version we should use.
(we are using the latest gensim 4.0.0)

This github issue suggests it should be from gensim.models.keyedvectors import KeyedVector

Best,
-- Luke

@robbiedood
Copy link
Author

Update: if we downgrade gensim to 3.8.3, it would work.
Still hope to know the correct gensim version we should use to avoid potential errors.

@AleMuzzi
Copy link

AleMuzzi commented Sep 9, 2021

Bug appeared in version 4.1.0 using the import

from fse.models import Average

found in this example https://towardsdatascience.com/vis-amz-83dea6fcb059.
I managed to get gensim work downgrading it to version 3.8.3 .

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

No branches or pull requests

2 participants