pub trait TFIDFEngine<N>{
// Required methods
fn idf_vec(
corpus: &Corpus,
token_dim_sample: &IndexSet<String, RandomState>,
) -> (Vec<N>, f64);
fn tf_vec(
freq: &TokenFrequency,
token_dim_sample: &IndexSet<String, RandomState>,
) -> (ZeroSpVec<N>, f64);
}Required Methods§
Sourcefn idf_vec(
corpus: &Corpus,
token_dim_sample: &IndexSet<String, RandomState>,
) -> (Vec<N>, f64)
fn idf_vec( corpus: &Corpus, token_dim_sample: &IndexSet<String, RandomState>, ) -> (Vec<N>, f64)
Sourcefn tf_vec(
freq: &TokenFrequency,
token_dim_sample: &IndexSet<String, RandomState>,
) -> (ZeroSpVec<N>, f64)
fn tf_vec( freq: &TokenFrequency, token_dim_sample: &IndexSet<String, RandomState>, ) -> (ZeroSpVec<N>, f64)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.