Skip to content

Commit

Permalink
Fixes piskvorky#1828 , Tests Added
Browse files Browse the repository at this point in the history
  • Loading branch information
sj29-innovate committed Jan 9, 2018
1 parent de436bc commit 17ccbcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gensim/test/test_BM25.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def test_nonnegative_weights(self):
""" All the weights for a partiular document should be non negative """
weights = get_bm25_weights(common_texts)
for doc_weights in weights:
for weight in doc_weights:
self.assertTrue(weight >= 0)
for weight in doc_weights:
self.assertTrue(weight >= 0)

def test_same_match_with_same_document(self):
""" A document should always get the same weight when matched with a particular document """
Expand Down

0 comments on commit 17ccbcc

Please sign in to comment.