Skip to content

Commit

Permalink
Reword warning message for BM25.average_idf < 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Nov 26, 2019
1 parent 69b1c22 commit 9ecbbf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gensim/summarization/bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def _initialize(self, corpus):
if self.average_idf < 0:
logger.warning(
'Average inverse document frequency is less than zero. Your corpus of {} documents'
' is either too small or it does not originate from actual text documents. BM25'
' will likely produce unintuitive results.'.format(self.corpus_size)
' is either too small or it does not originate from natural text. BM25 may produce'
' unintuitive results.'.format(self.corpus_size)
)

eps = EPSILON * self.average_idf
Expand Down

0 comments on commit 9ecbbf0

Please sign in to comment.