pub struct Bm25Index {
pub avg_doc_len: f32,
pub doc_count: usize,
pub k1: f32,
pub b: f32,
pub idf: HashMap<String, f32>,
pub term_to_docs: HashMap<String, HashSet<String>>,
}Fields§
§avg_doc_len: f32§doc_count: usize§k1: f32§b: f32§idf: HashMap<String, f32>§term_to_docs: HashMap<String, HashSet<String>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bm25Index
impl RefUnwindSafe for Bm25Index
impl Send for Bm25Index
impl Sync for Bm25Index
impl Unpin for Bm25Index
impl UnsafeUnpin for Bm25Index
impl UnwindSafe for Bm25Index
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