Skip to content

Commit

Permalink
piskvorky#1380: Pass through with_std argument for all coherence me…
Browse files Browse the repository at this point in the history
…asures.
  • Loading branch information
Sweeney, Mack committed Jun 16, 2017
1 parent a13ba74 commit 8690dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gensim/models/coherencemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ def get_coherence_per_topic(self, segmented_topics=None, with_std=False):
if self.coherence in BOOLEAN_DOCUMENT_BASED or self.coherence == 'c_w2v':
kwargs = dict(with_std=with_std)
elif self.coherence == 'c_v':
kwargs = dict(topics=self.topics, measure='nlr', gamma=1)
kwargs = dict(topics=self.topics, measure='nlr', gamma=1, with_std=with_std)
else:
kwargs = dict(normalize=(self.coherence == 'c_npmi'))
kwargs = dict(normalize=(self.coherence == 'c_npmi'), with_std=with_std)

return measure.conf(segmented_topics, self._accumulator, **kwargs)

Expand Down

0 comments on commit 8690dc3

Please sign in to comment.