Skip to content

Can we perform pseudo-relevance feedback with BM25S? #71

Answered by xhluca
roynirmal asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, i'm not familiar with the concept, and it's challenging for me to work out the math wrt non-occurrence matrix and score shifting. If you work it out, feel free to share it here!

Regarding building bm25 scorers in general, you can implement your own idf scorer in a fork and add it here:

def _select_idf_scorer(method) -> callable:

and create your own tf component scorer and add it here:

def _select_tfc_scorer(method) -> callable:

then, in the bm25s, you can select it by using the name of your custom bm25 implementation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by roynirmal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants