Skip to content

Commit

Permalink
Change num_words to topn in dtm_coherence (piskvorky#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeganStodel authored Sep 3, 2020
1 parent 030e650 commit 6e0d00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/models/wrappers/dtmmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def dtm_coherence(self, time, num_words=20):
"""
coherence_topics = []
for topic_no in range(0, self.num_topics):
topic = self.show_topic(topicid=topic_no, time=time, num_words=num_words)
topic = self.show_topic(topicid=topic_no, time=time, topn=num_words)
coherence_topic = []
for prob, word in topic:
coherence_topic.append(word)
Expand Down

0 comments on commit 6e0d00b

Please sign in to comment.