BM25Encoder
object and calls the fit()
function on the corpus, formatted as an array of strings.
BM25Encoder
, you can call the default
method. The default parameters were fitted on the MS MARCO passage ranking dataset.
Example
doc_sparse_vector
are like the following:
query_sparse_vector
are like the following: