Enum kite::similarity::SimilarityModel
[−]
[src]
pub enum SimilarityModel { TfIdf, Bm25 { k1: f32, b: f32, }, }
Variants
TfIdf
Bm25
Fields of Bm25
k1: f32 | |
b: f32 |
Methods
impl SimilarityModel
[src]
fn score(
&self,
term_frequency: u32,
length: f32,
total_tokens: u64,
total_docs: u64,
total_docs_with_term: u64
) -> f32
&self,
term_frequency: u32,
length: f32,
total_tokens: u64,
total_docs: u64,
total_docs_with_term: u64
) -> f32
Trait Implementations
impl Debug for SimilarityModel
[src]
impl Clone for SimilarityModel
[src]
fn clone(&self) -> SimilarityModel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for SimilarityModel
[src]
fn eq(&self, __arg_0: &SimilarityModel) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SimilarityModel) -> bool
This method tests for !=
.