pub struct TextTfScoreNormalizer;Expand description
Normalize a TF-weighted text score into [0, 1] over one posting list.
This is a query-pool score transform; it does not construct vectors and therefore has no vector-dimension setting.
Implementations§
Source§impl TextTfScoreNormalizer
impl TextTfScoreNormalizer
pub fn normalize(&self, posting: PostingList) -> PostingList
Trait Implementations§
Source§impl Clone for TextTfScoreNormalizer
impl Clone for TextTfScoreNormalizer
impl Copy for TextTfScoreNormalizer
Source§impl Debug for TextTfScoreNormalizer
impl Debug for TextTfScoreNormalizer
Auto Trait Implementations§
impl Freeze for TextTfScoreNormalizer
impl RefUnwindSafe for TextTfScoreNormalizer
impl Send for TextTfScoreNormalizer
impl Sync for TextTfScoreNormalizer
impl Unpin for TextTfScoreNormalizer
impl UnsafeUnpin for TextTfScoreNormalizer
impl UnwindSafe for TextTfScoreNormalizer
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