(total_docs: int, docs_with_term: int)
| 242 | |
| 243 | |
| 244 | def compute_bm25_idf(total_docs: int, docs_with_term: int) -> float: |
| 245 | return math.log1p((total_docs - docs_with_term + 0.5) / (docs_with_term + 0.5)) |
| 246 | |
| 247 | |
| 248 | def compute_bm25_tf( |
no outgoing calls
no test coverage detected