tokenizer.save has the wrong arguments compared to documentation (#901)

* tokenizer.save has the wrong arguments compared to documentation

* Fixing doc of `save` function.

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
This commit is contained in:
Thomas Wang
2022-02-15 17:55:55 +01:00
committed by GitHub
parent 448054f3c7
commit 88d718207a
4 changed files with 29 additions and 5 deletions

View File

@ -604,7 +604,7 @@ impl PyTokenizer {
/// pretty (:obj:`bool`, defaults to :obj:`True`):
/// Whether the JSON file should be pretty formatted.
#[args(pretty = true)]
#[text_signature = "(self, pretty=True)"]
#[text_signature = "(self, path, pretty=True)"]
fn save(&self, path: &str, pretty: bool) -> PyResult<()> {
ToPyResult(self.tokenizer.save(path, pretty)).into()
}