In the _calc_idf() method of BM25Plus, a division is used in math.log(), which is less stable than a subtraction of two logarithms. This PR replaces the division with subtraction,
Sorry for the slow reaction, but this is a great change. I see now that I did this for the other _calc_idf methods, but not this one. Will get it merged!
In the
_calc_idf()
method ofBM25Plus
, a division is used inmath.log()
, which is less stable than a subtraction of two logarithms. This PR replaces the division with subtraction,