pub struct TekkenEncoder { /* private fields */ }Expand description
Tekken BPE encoder for text → token IDs.
Wraps tiktoken’s CoreBPE with the correct vocab and regex pattern
from a tekken.json file. Output token IDs include the 1000 offset
(matching the model’s embedding table layout).
Implementations§
Auto Trait Implementations§
impl Freeze for TekkenEncoder
impl RefUnwindSafe for TekkenEncoder
impl Send for TekkenEncoder
impl Sync for TekkenEncoder
impl Unpin for TekkenEncoder
impl UnsafeUnpin for TekkenEncoder
impl UnwindSafe for TekkenEncoder
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