dorianbrown / rank_bm25

A Collection of BM25 Algorithms in Python
Apache License 2.0
980 stars 82 forks source link

Similarity between sentences #16

Open RakshaAg opened 3 years ago

RakshaAg commented 3 years ago

How can we use BM25 to measure similarity between two sentences.

Currently the function is not symmetric i.e BM25(R,S) not equals BM25(S,R)

dorianbrown commented 2 years ago

If you could share a small reproducible example of this using the library, that would help me understand what function's you're referring to with your question.