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
Source§fn clone(&self) -> TextTfScoreNormalizer
fn clone(&self) -> TextTfScoreNormalizer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextTfScoreNormalizer
Source§impl Debug for TextTfScoreNormalizer
impl Debug for TextTfScoreNormalizer
Source§impl Default for TextTfScoreNormalizer
impl Default for TextTfScoreNormalizer
Source§fn default() -> TextTfScoreNormalizer
fn default() -> TextTfScoreNormalizer
Returns the “default value” for a type. Read more
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