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

Can't get texthero to work with current versions of spacy and gensim #217

Open
nkadochn opened this issue Nov 15, 2021 · 1 comment
Open

Comments

@nkadochn
Copy link

I am having hard time resolving the dependencies with texthero. Looks like the current versions of Gensim and Spacy are incompatible with texthero

Gensim error: ModuleNotFoundError: No module named 'gensim.sklearn_api'
Spacy error: modulenotfounderror: no module named 'thinc.types'

@jbesomi
Copy link
Owner

jbesomi commented Nov 16, 2021

Hey Nick @nkadochn , thank you for your message.

I update both Gensim and Spacy to the latest versions and tried to understand the issues. Here is what I discovered:

Gensim. Texthero supports Gensim version 3.8.3. Unfortunately, Gensim V4 is not backward compatible with V3 and moreover, the API completely changed for the Phrases module (Texthero is using it). Therefore, supporting V4 is not trivial. If you are willing to contribute, it would be great if you can adapt Texthero code to support both Gensim version 3 and version 4 (or, even better, remove completely Gensim dependency and implement the phrases algorithm directly).

Spacy. I tried to install Spacy latest version (3.2.0) and could import Texthero without issues. Which version of Spacy do you have and when do you encounter the Spacy error?

Also, pip install texthero should automatically install the right dependency version. Did you open this issue because you would like to use the latest version of both tools or just because you cannot make Texthero work?

Moreover, what are you working on with Texthero? To better decide what do to next, knowing what other people are working on is very useful. Thanks!

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