You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 changeif 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
The text was updated successfully, but these errors were encountered: