pub struct TokenizationConfig {
pub tokenizer_type: TokenizerType,
pub vocab_size: usize,
pub special_tokens: SpecialTokens,
pub preprocessing: TextPreprocessing,
}Expand description
Tokenization configuration
Fields§
§tokenizer_type: TokenizerTypeTokenizer type
vocab_size: usizeVocabulary size
special_tokens: SpecialTokensSpecial tokens
preprocessing: TextPreprocessingText preprocessing options
Trait Implementations§
Source§impl Clone for TokenizationConfig
impl Clone for TokenizationConfig
Source§fn clone(&self) -> TokenizationConfig
fn clone(&self) -> TokenizationConfig
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 TokenizationConfig
impl Debug for TokenizationConfig
Auto Trait Implementations§
impl Freeze for TokenizationConfig
impl RefUnwindSafe for TokenizationConfig
impl Send for TokenizationConfig
impl Sync for TokenizationConfig
impl Unpin for TokenizationConfig
impl UnwindSafe for TokenizationConfig
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