pub struct Encoding {
pub dict: Dict,
pub merging_ranks: HashMap<String, isize>,
pub special_tokens: HashMap<String, isize>,
pub explicit_vocab_size: isize,
}
Fields§
§dict: Dict
§merging_ranks: HashMap<String, isize>
§special_tokens: HashMap<String, isize>
§explicit_vocab_size: isize
Implementations§
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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