diff --git a/gensim/models/ldamodel.py b/gensim/models/ldamodel.py index 8e0eee4ef9..30ca93f1b2 100755 --- a/gensim/models/ldamodel.py +++ b/gensim/models/ldamodel.py @@ -912,7 +912,7 @@ def get_document_topics(self, bow, minimum_probability=None, minimum_phi_value=N ) return self._apply(corpus, **kwargs) - gamma, phis = self.inference([bow], collect_sstats=True) + gamma, phis = self.inference([bow], collect_sstats=per_word_topics) topic_dist = gamma[0] / sum(gamma[0]) # normalize distribution document_topics = [(topicid, topicvalue) for topicid, topicvalue in enumerate(topic_dist)