pub struct TokenizerConfig {
pub extra_stopwords: Vec<String>,
pub custom_only: bool,
}Expand description
Configuration for the tokenizer.
Fields§
§extra_stopwords: Vec<String>Custom stopwords to add to the default set.
custom_only: boolIf true, use only extra_stopwords and skip the default English set.
Trait Implementations§
Source§impl Clone for TokenizerConfig
impl Clone for TokenizerConfig
Source§fn clone(&self) -> TokenizerConfig
fn clone(&self) -> TokenizerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TokenizerConfig
impl Debug for TokenizerConfig
Source§impl Default for TokenizerConfig
impl Default for TokenizerConfig
Source§fn default() -> TokenizerConfig
fn default() -> TokenizerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokenizerConfig
impl RefUnwindSafe for TokenizerConfig
impl Send for TokenizerConfig
impl Sync for TokenizerConfig
impl Unpin for TokenizerConfig
impl UnsafeUnpin for TokenizerConfig
impl UnwindSafe for TokenizerConfig
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