I have the LDA model and the document-topic probabilities.
# build the model on the corpus
ldam = LdaModel(corpus=corpus, num_topics=20, id2word=dictionary)
# get the document-topic probabilities
theta, _ = ldam.inference(corpus)
I also need the distribution of words for all the topics i.e. a topic-word probability matrix. Is there a way to extract this information?
Thanks!