pub struct TfIdfVectorizerConfig {
pub tokenizer_config: TextTokenizerConfig,
pub min_df: f64,
pub max_df: f64,
pub max_features: Option<usize>,
pub use_idf: bool,
pub smooth_idf: bool,
pub sublinear_tf: bool,
}Expand description
Configuration for TF-IDF vectorizer
Fields§
§tokenizer_config: TextTokenizerConfig§min_df: f64§max_df: f64§max_features: Option<usize>§use_idf: bool§smooth_idf: bool§sublinear_tf: boolTrait Implementations§
Source§impl Clone for TfIdfVectorizerConfig
impl Clone for TfIdfVectorizerConfig
Source§fn clone(&self) -> TfIdfVectorizerConfig
fn clone(&self) -> TfIdfVectorizerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TfIdfVectorizerConfig
impl Debug for TfIdfVectorizerConfig
Auto Trait Implementations§
impl Freeze for TfIdfVectorizerConfig
impl RefUnwindSafe for TfIdfVectorizerConfig
impl Send for TfIdfVectorizerConfig
impl Sync for TfIdfVectorizerConfig
impl Unpin for TfIdfVectorizerConfig
impl UnwindSafe for TfIdfVectorizerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more