def get_doc_topics(lda, bow):
    gamma, _ = lda.inference([bow])
topic_dist = gamma[0] / sum(gamma[0])
return [(topicid, topicvalue) for topicid, topicvalue in enumerate(topic_dist)]
Document topical distribution in Gensim LDA