Skip to content

Instantly share code, notes, and snippets.

@FelixChop
Created December 13, 2018 12:08
Show Gist options
  • Select an option

  • Save FelixChop/880e8c626428269e9690314ba4da30c5 to your computer and use it in GitHub Desktop.

Select an option

Save FelixChop/880e8c626428269e9690314ba4da30c5 to your computer and use it in GitHub Desktop.
%matplotlib inline
import pyLDAvis
import pyLDAvis.gensim
vis = pyLDAvis.gensim.prepare(topic_model=lda_model, corpus=corpus, dictionary=dictionary_LDA)
pyLDAvis.enable_notebook()
pyLDAvis.display(vis)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment