mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 16:49:27 +00:00
Python - Improved example with custom components
This commit is contained in:
@ -7,6 +7,7 @@ use tokenizers::tokenizer::Result;
|
||||
#[derive(Debug)]
|
||||
pub struct PyError(pub String);
|
||||
impl PyError {
|
||||
#[allow(dead_code)]
|
||||
pub fn from(s: &str) -> Self {
|
||||
PyError(String::from(s))
|
||||
}
|
||||
|
Reference in New Issue
Block a user