pub struct WordPieceOptions {
pub max_word_len: Option<usize>,
}Expand description
Configuration for a WordPiece tokenizer.
Fields§
§max_word_len: Option<usize>The maximum length of words that can be tokenized. Any words longer than
this are tokenized as [UNK].
Defaults to 100.
Trait Implementations§
Source§impl Clone for WordPieceOptions
impl Clone for WordPieceOptions
Source§fn clone(&self) -> WordPieceOptions
fn clone(&self) -> WordPieceOptions
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 WordPieceOptions
impl Debug for WordPieceOptions
Source§impl Default for WordPieceOptions
impl Default for WordPieceOptions
Source§fn default() -> WordPieceOptions
fn default() -> WordPieceOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WordPieceOptions
impl RefUnwindSafe for WordPieceOptions
impl Send for WordPieceOptions
impl Sync for WordPieceOptions
impl Unpin for WordPieceOptions
impl UnwindSafe for WordPieceOptions
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