data-describe / data-describe

data⎰describe: Pythonic EDA Accelerator for Data Science
Other
295 stars 18 forks source link

topic_model AttributeError: module 'pyLDAvis' has no attribute 'gensim' #431

Open truongc2 opened 3 years ago

truongc2 commented 3 years ago

Your bug may already be reported! Please search on the issue tracker before creating one.

Description

AttributeError: module 'pyLDAvis' has no attribute 'gensim'

Steps to Reproduce

lda_model = topic_model(text, num_topics=None, min_topics=3)
lda_model.visualize_topic_summary()

Your Environment

nachlasb commented 1 year ago

Have you tried using:

pip install pyLDAvis.gensim_models import pyLDAvis.gensim_models

instead of:

import pyLDAvis.gensim

?

Hope that works for you :)