mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-08 05:38:23 +00:00
Formatting for python binding.
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
This commit is contained in:
@@ -30,15 +30,12 @@ impl Model {
|
|||||||
for (key, value) in kwargs {
|
for (key, value) in kwargs {
|
||||||
let key: &str = key.extract()?;
|
let key: &str = key.extract()?;
|
||||||
match key {
|
match key {
|
||||||
"name" => {
|
"name" => name = value.extract()?,
|
||||||
name = value.extract()?
|
|
||||||
}
|
|
||||||
_ => println!("Ignored unknown kwarg option {}", key),
|
_ => println!("Ignored unknown kwarg option {}", key),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let saved: PyResult<Vec<_>> = ToPyResult(
|
let saved: PyResult<Vec<_>> = ToPyResult(
|
||||||
self.model
|
self.model
|
||||||
.execute(|model| model.save(Path::new(folder), name)),
|
.execute(|model| model.save(Path::new(folder), name)),
|
||||||
|
|||||||
Reference in New Issue
Block a user