Trait tfidf::NaiveDocument[][src]

pub trait NaiveDocument: Document {
    fn term_exists<K>(&self, term: K) -> bool
    where
        K: Borrow<Self::Term>
; }
Expand description

A naive document with a simple function stating whether or not a term exists in the document or not. The document is naive , which means the frequencies of each term has yet to be determined. This type of document is useful for only some TF weighting schemes.

Required methods

fn term_exists<K>(&self, term: K) -> bool where
    K: Borrow<Self::Term>, 
[src]

Expand description

Returns if a (non-normalized) term exists within the document.

Implementors

impl<D, T> NaiveDocument for D where
    D: ProcessedDocument<Term = T>, 
[src]

fn term_exists<K>(&self, term: K) -> bool where
    K: Borrow<T>, 
[src]