Trait tfidf::ProcessedDocument [−][src]
pub trait ProcessedDocument: Document { fn term_frequency<K>(&self, term: K) -> usize
where
K: Borrow<Self::Term>; fn max(&self) -> Option<&Self::Term>; }
Expand description
A document where the frequencies of each term is already calculated.
Required methods
fn term_frequency<K>(&self, term: K) -> usize where
K: Borrow<Self::Term>,
[src]
K: Borrow<Self::Term>,
Expand description
Returns the number of times a (non-normalized) term exists within the document.
fn max(&self) -> Option<&Self::Term>
[src]
Expand description
Returns the term with the highest frequency, or tied for the highest frequency.
Implementations on Foreign Types
impl<T> ProcessedDocument for BTreeMap<T, usize> where
T: Ord,
[src]
impl<T> ProcessedDocument for BTreeMap<T, usize> where
T: Ord,
[src]