MCPcopy Create free account
hub / github.com/ankane/tokenizers-ruby / save

Method save

ext/tokenizers/src/tokenizer.rs:313–317  ·  view source on GitHub ↗
(&self, path: String, pretty: bool)

Source from the content-addressed store, hash-verified

311 }
312
313 pub fn save(&self, path: String, pretty: bool) -> RbResult<()> {
314 self.read_inner()?
315 .save(&path, pretty)
316 .map_err(RbError::from)
317 }
318
319 pub fn num_special_tokens_to_add(&self, is_pair: bool) -> RbResult<usize> {
320 Ok(self

Callers 2

test_serializationMethod · 0.45
test_worksMethod · 0.45

Calls 1

read_innerMethod · 0.80

Tested by 2

test_serializationMethod · 0.36
test_worksMethod · 0.36