Skip to main content

chunk_terms

Function chunk_terms 

Source
pub fn chunk_terms(
    body: &str,
    symbol: Option<&str>,
    path_terms: &[String],
) -> (Vec<(String, u16)>, u32)
Expand description

Term frequencies for a chunk: body tokens, the symbol name boosted, and path terms once each.