pub trait Tf<T>where
T: NaiveDocument,{
// Required method
fn tf<K>(term: K, doc: &T) -> f64
where K: Borrow<T::Term>;
}
Expand description
A strategy to calculate a weighted or unweighted term frequency (tf) score of a term from a document.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.