Trait xor_utils::ScoreAgainstDictionary
[−]
[src]
pub trait ScoreAgainstDictionary { fn score_with_words(&self, words_list: Vec<String>) -> f32; }
Required Methods
fn score_with_words(&self, words_list: Vec<String>) -> f32
Calculates a relative value "score" for an item which relates to how likely it is the item represents text.
The provided words vector is used to increase the score of the item if it contained any of the words in the vector.
Implementors
impl ScoreAgainstDictionary for String