Trait tfidf::Tf
[−]
[src]
pub trait Tf<T> where
T: NaiveDocument, { fn tf<K>(term: K, doc: &T) -> f64
where
K: Borrow<T::Term>; }
A strategy to calculate a weighted or unweighted term frequency (tf) score of a term from a document.
Required Methods
fn tf<K>(term: K, doc: &T) -> f64 where
K: Borrow<T::Term>,
K: Borrow<T::Term>,
Returns the weighted or unweighted term frequency (tf) for a single term within a document.
Implementors
impl<T> Tf<T> for BinaryTf where
T: NaiveDocument,impl<T> Tf<T> for RawFrequencyTf where
T: ProcessedDocument,impl<T> Tf<T> for LogNormalizationTf where
T: ProcessedDocument,impl<T, S> Tf<T> for S where
S: DoubleKNormalizationTf,
T: ProcessedDocument,