pub struct BertOptions {
pub lowercase: bool,
pub strip_accents: bool,
}Expand description
Configuration for a Bert normalizer.
Fields§
§lowercase: boolIf true, convert all text to lowercase using char::to_lowercase.
strip_accents: boolWhether to strip accents when tokenizing. An “accent” is defined as any unicode character in the Nonspacing Mark (“Mn”) category.
Trait Implementations§
Source§impl Clone for BertOptions
impl Clone for BertOptions
Source§fn clone(&self) -> BertOptions
fn clone(&self) -> BertOptions
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 BertOptions
impl Debug for BertOptions
Source§impl Default for BertOptions
impl Default for BertOptions
Source§fn default() -> BertOptions
fn default() -> BertOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BertOptions
impl RefUnwindSafe for BertOptions
impl Send for BertOptions
impl Sync for BertOptions
impl Unpin for BertOptions
impl UnwindSafe for BertOptions
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