-
Notifications
You must be signed in to change notification settings - Fork 363
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
(v3.4.1) IndexError: index 46308 is out of bounds for axis 1 with size 17797 #253
Comments
Correcting the code for v 3.4.1: import pickle
from gensim import models
#import pyLDAvis.gensim
import pyLDAvis.gensim_models as gensimvis
id2word = pickle.load(open('../data/id2word.pkl','rb'))
cv_vecs = pickle.load(open('../data/cv_vecs.pkl','rb'))
cv_corpus = pickle.load(open('../data/cv_corpus.pkl','rb'))
lda = models.LdaModel.load('../data/gensim_lda.model')
#viz = pyLDAvis.gensim.prepare(topic_model=lda, corpus=cv_corpus, dictionary=id2word, mds='mmds')
viz = gensimvis.prepare(topic_model=lda, corpus=cv_corpus, dictionary=id2word, mds='mmds') Do you still get the same error? |
FYI I get an error trying to evaluate using your model
|
Can't reproduce, consider stale. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get
I'm using pyLDAvis v3.4.1 on Python 3.10.10 on Windows. Here is the full code:
You can check the input files here
The text was updated successfully, but these errors were encountered: