dorianbrown / rank_bm25

A Collection of BM25 Algorithms in Python
Apache License 2.0
1.02k stars 86 forks source link

Typo in the BM25L scores #5

Closed JeremyKraft67 closed 4 years ago

JeremyKraft67 commented 4 years ago

Hi!

Thanks for sharing the code. But I think that there is a typo in the score of the BM25L class.

The term score shouldn't be multiplied by 'q_freq '. Otherwise you get a document score of 0 if none of the query terms appear in the document.