mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 00:35:35 +00:00
Python - Pretty json saving defaults to true (#793)
* Python - Pretty json saving defaults to true * Update changelog
This commit is contained in:
@ -601,10 +601,10 @@ impl PyTokenizer {
|
||||
/// path (:obj:`str`):
|
||||
/// A path to a file in which to save the serialized tokenizer.
|
||||
///
|
||||
/// pretty (:obj:`bool`, defaults to :obj:`False`):
|
||||
/// pretty (:obj:`bool`, defaults to :obj:`True`):
|
||||
/// Whether the JSON file should be pretty formatted.
|
||||
#[args(pretty = false)]
|
||||
#[text_signature = "(self, pretty=False)"]
|
||||
#[args(pretty = true)]
|
||||
#[text_signature = "(self, pretty=True)"]
|
||||
fn save(&self, path: &str, pretty: bool) -> PyResult<()> {
|
||||
ToPyResult(self.tokenizer.save(path, pretty)).into()
|
||||
}
|
||||
|
Reference in New Issue
Block a user