pub fn to_string(&self, pretty: bool) -> Result<String> {
        Ok(if pretty {
            serde_json::to_string_pretty(self)?
        } else {
            serde_json::to_string(self)?
        })
    }
/// Serialize the current tokenizer as a String
Serialize the current tokenizer as a String
Serialize the current tokenizer as a String
pub fn to_string(&self, pretty: bool) -> Result<String> {
        Ok(if pretty {
            serde_json::to_string_pretty(self)?
        } else {
            serde_json::to_string(self)?
        })
    }
pub fn to_string ( & self , pretty : bool ) -> Result < String > { Ok ( if pretty { serde_json :: to_string_pretty ( self ) ? } else { serde_json :: to_string ( self ) ? } ) }
Serialize the current tokenizer as a String
Serialize the current tokenizer as a String
&self
pretty
bool