pub fn save<P: AsRef<Path>>(&self, path: P, pretty: bool) -> Result<()> {
        let serialized = self.to_string(pretty)?;

        let mut file = File::create(path)?;
        file.write_all(serialized.as_bytes())?;

        Ok(())
    }
/// Save the current tokenizer at the given path
Save the current tokenizer at the given path
Save the current tokenizer at the given path
pub fn save<P: AsRef<Path>>(&self, path: P, pretty: bool) -> Result<()> {
        let serialized = self.to_string(pretty)?;
        let mut file = File::create(path)?;
        file.write_all(serialized.as_bytes())?;
        Ok(())
    }
pub fn save < P : AsRef < Path > > ( & self , path : P , pretty : bool ) -> Result < ( ) > { let serialized = self . to_string ( pretty ) ? ; let mut file = File :: create ( path ) ? ; file . write_all ( serialized . as_bytes ( ) ) ? ; Ok ( ( ) ) }
Save the current tokenizer at the given path
Save the current tokenizer at the given path
&self
path
P
pretty
bool