January 2019
Intermediate to advanced
294 pages
6h 43m
English
In order to visualize the data, we can use the following code:
import pyLDAvisimport pyLDAvis.gensimimport matplotlib.pyplot as plt%matplotlib inlinepyLDAvis.enable_notebook()visual1= pyLDAvis.gensim.prepare(lda_model, doc_term_matrix, corpus)visual1
The output will be as follows:

We can enable the notebook here, as follows:
pyLDAvis.enable_notebook() visual2= pyLDAvis.gensim.prepare(lda_model2, doc_term_matrix, corpus) visual2
The output is as follows:

Let's try to interpret this.
On the left hand side, we have the ...
Read now
Unlock full access