pub fn text_to_sparse(text: &str) -> SparseVectorExpand description
Tokenize text into a term-frequency SparseVector: dimension ids are token
ids (term_id) and values are within-text term counts. The ingest side of
the BM25 path (ADR-0046).
pub fn text_to_sparse(text: &str) -> SparseVectorTokenize text into a term-frequency SparseVector: dimension ids are token
ids (term_id) and values are within-text term counts. The ingest side of
the BM25 path (ADR-0046).