Trait tfidf::TfIdf[][src]

pub trait TfIdf<T> where
    T: NaiveDocument
{ type Tf: Tf<T>; type Idf: Idf<T>; fn tfidf<'a, K, I>(term: K, doc: &T, docs: I) -> f64
    where
        I: Iterator<Item = &'a T>,
        K: Borrow<T::Term>,
        T: 'a
, { ... } }
Expand description

Trait to create a strategy to calculate a tf-idf.

Associated Types

type Tf: Tf<T>[src]

Expand description

The tf weighting scheme.

type Idf: Idf<T>[src]

Expand description

The idf weighting scheme.

Provided methods

fn tfidf<'a, K, I>(term: K, doc: &T, docs: I) -> f64 where
    I: Iterator<Item = &'a T>,
    K: Borrow<T::Term>,
    T: 'a, 
[src]

Expand description

Calculates the tf-idf using the two weighting schemes chosen.

Implementors