Skip to main content

Module bm25

Module bm25 

Source
Expand description

BM25 over entries (adapted from repomap’s engine), with a light English stemmer and query stopwords so questions in plain language rank well.

Structs§

Bm25
Hit

Functions§

expand
Query terms plus weighted synonyms not already present.
is_stop
A stopword (lowercase)?
query_terms
Query-side terms: stopwords dropped, deduplicated.
stem
Conservative suffix stripping: plural, -ing, -ed, final -e, and the noun forms -ation / -ability that pair with -ate / -able (validation ~ validate, immutability ~ immutable).
terms
Index-side terms for a text.
tf
Weighted term frequencies for one document.