pub trait EsmTokenizerBase {
Show 14 methods
// Required methods
fn encode(&self) -> Result<()>;
fn decode(&self) -> Result<()>;
fn mask_token(&self) -> &str;
fn mask_token_id(&self) -> u32;
fn bos_token(&self) -> &str;
fn bos_token_id(&self) -> u32;
fn eos_token(&self) -> &str;
fn eos_token_id(&self) -> u32;
fn pad_token(&self) -> &str;
fn pad_token_id(&self) -> u32;
fn chain_break_token(&self) -> &str;
fn chain_break_token_id(&self) -> u32;
fn all_token_ids(&self) -> Vec<u32>;
fn special_token_ids(&self) -> Vec<u32>;
}