Struct tfidf::tf::BinaryTf [] [src]

pub struct BinaryTf;

Binary weighting scheme for TF. If the document contains the term, returns 1, otherwise returns 0.

Trait Implementations

impl Copy for BinaryTf
[src]

impl Clone for BinaryTf
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Tf<T> for BinaryTf where
    T: NaiveDocument
[src]

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