I am using PyLDAvis to visualise the results of the LDA from Mallet.
Before I can do that, I need the wrapper of the gensim library:
model = gensim.models.wrappers.ldamallet.malletmodel2ldamodel(model_list[8])
When I print the found topics, they are ordered from 0-10.
However when I am using the pyLDAvis to visualise the Topics, the Topic order (0-10), does not align with printed topics.
Example:
(5,
'0.042*"euro" + 0.030*"smartpho" + 0.022*"camera" + 0.020*"display" + '
'0.018*"model" + 0.016*"picture" + 0.012*"price" + 0.010*"android"')
As you can see this topic is about smartphones.
However when I visualise the model with pyLDAvis, Topic 5 is not about smartphones, but about another Topic (cars for example). The smartphone topic is not 5 anymore but topic 1.
Example1:
Is this a known error or is this the normal? Somebody can help?