There is a variable call topn
in show_topics()
where you can specify the number of top N words you require from the words distribution over each topic. see http://radimrehurek.com/gensim/models/ldamodel.html
So instead of the default lda.show_topics()
. You can use the len(dictionary)
for the full word distributions for each topic:
for i in lda.show_topics(topn=len(dictionary)):
print i