As far as I understood for now,
LdaModel.print_topic(n) shows a distribution of words given a topic t, i.e. p(w|t) for every word in descending order.
As I am trying to mimic a research paper's results, I need the opposite: p(t|w). Given a word w I want to get the distribution over topics.
I know that I can apply the Bayes' Theorem here and use the following equation:
p(t|w) = p(w|t) * p(t) / p(w)
But then again I would need to compute p(t), the probability of a topic t to appear in the entire corpus.
Therefore, my question is: Is there a simple way to get either p(t) or p(t|w) using gensim's lda model?
But I did not really understand the suggested solution. If I just need to call LdaModel.inference(), what do I need to pass as chunks?