运行时
vis_data = pyLDAvis.gensim.prepare(lda, corpus, dictionary)
报错:AttributeError: module 'pyLDAvis' has no attribute 'gensim'
已经import过:
import gensim
import pyLDAvis.sklearn
运行时
vis_data = pyLDAvis.gensim.prepare(lda, corpus, dictionary)
报错:AttributeError: module 'pyLDAvis' has no attribute 'gensim'
已经import过:
import gensim
import pyLDAvis.sklearn
pyLDAvis是什么版本?好像版本不能太新,换个2.几的试试