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

Returns the weighted or unweighted term frequency (tf) for a single term within a document.

Implementors