pub struct TfDfResult {
pub term_frequencies: Vec<AHashMap<u8, usize>>,
pub document_frequencies: AHashMap<String, usize>,
pub document_lengths: Vec<usize>,
}Expand description
Represents the result of term frequency and document frequency computation
Fields§
§term_frequencies: Vec<AHashMap<u8, usize>>Term frequencies for each document, using u8 index for query tokens
document_frequencies: AHashMap<String, usize>Document frequencies for each term (remains String-based for IDF)
document_lengths: Vec<usize>Document lengths (number of tokens in each document)
Auto Trait Implementations§
impl Freeze for TfDfResult
impl RefUnwindSafe for TfDfResult
impl Send for TfDfResult
impl Sync for TfDfResult
impl Unpin for TfDfResult
impl UnwindSafe for TfDfResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more