-
Hi, I wonder if I can compute the BM25 score between a query and a new document which is not in the collection index. I wanna use the statistical information from the collection to compute the BM25 score of this new document. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @wuchen95 - currently, the feature of incremental indexing from Lucene is not exposed in Pyserini, so to compute the BM25 score of a new document, you'll have to compute it yourself from the component tf/df and other stats. |
Beta Was this translation helpful? Give feedback.
Hi @wuchen95 - currently, the feature of incremental indexing from Lucene is not exposed in Pyserini, so to compute the BM25 score of a new document, you'll have to compute it yourself from the component tf/df and other stats.