cemoody / lda2vec

MIT License
3.15k stars 628 forks source link

Spacy Issue #75

Open dead111145 opened 6 years ago

dead111145 commented 6 years ago

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 commented 6 years ago

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

thommiano commented 5 years ago

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