my library is here, bm25_pt: http://
github.com/jxmorris12/bm2
5_pt
… the key insight is that you can reduce the BM25 scoring to a single matrix multiplication. everything in the big fraction on the right side here can be stored in a big matrix of scores then, bm25(q) = bag(q) @ scores.T
BM25_PT: Matrix Multiplication for Efficient Search Scoring
By
–
Leave a Reply