pub trait TFIDFEngine<N>: Send + Sync{
// Required methods
fn idf_vec(
corpus: &Corpus,
token_dim_sample: &IndexSet<Box<str>, RandomState>,
) -> (Vec<N>, f64);
fn tf_vec(
freq: &TokenFrequency,
token_dim_sample: &IndexSet<Box<str>, RandomState>,
) -> (ZeroSpVec<N>, f64);
}Required Methods§
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.