Skip to main content

term_counts

Function term_counts 

Source
pub fn term_counts(tokens: &[String]) -> HashMap<String, usize>
Expand description

Compute term counts for a list of tokens.

Returns a map from term to count of occurrences.