Skip to content

Commit

Permalink
ldamallet num_words changed to topn with deprecation warning
Browse files Browse the repository at this point in the history
To make the code consistent with the api-  parameters num_words changed to topn (for print_topic/show_topic method), with deprecation warning for num_words
  • Loading branch information
prakhar2b authored Mar 16, 2017
1 parent f45e141 commit af22736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/models/wrappers/ldamallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def show_topics(self, num_topics=10, num_words=10, log=False, formatted=True):
if formatted:
topic = self.print_topic(i, topn=num_words)
else:
topic = self.show_topic(i, topn=num_words)
topic = self.show_topic(i, num_words=num_words)
shown.append((i, topic))
if log:
logger.info("topic #%i (%.3f): %s", i, self.alpha[i], topic)
Expand Down

0 comments on commit af22736

Please sign in to comment.