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

Spacy Issue #75

Open
dead111145 opened this issue Jul 15, 2018 · 2 comments
Open

Spacy Issue #75

dead111145 opened this issue Jul 15, 2018 · 2 comments

Comments

@dead111145
Copy link

dead111145 commented Jul 15, 2018

Due to the version change of spacy library. You may find many issue like require dependency or cannot convert negative value to uint64_t.My solution to all these problems are change the lda2vec/lda2vec/preprocess.py, first import spacy at the top, then change if nlp == None: nlp = English() to:
if nlp == None: nlp = spacy.load('en')
unindenting the code at https://github.com/cemoody/lda2vec/blob/master/lda2vec/preprocess.py#L85-L88 by one level.
Then set spacy to version 1.9.0
and then do
python -m spacy download en

@kruti3
Copy link

kruti3 commented Aug 6, 2018

In addition to which, set numpy version as 1.12.0 instead of 1.15

@thommiano
Copy link

@dead111145 @kruti3 once you made these changes, were you able to get lda2vec running successfully?

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

3 participants