Files
tokenizers/bindings/python/src
Connor Boyle c2664ae13f Give error when initializing tokenizer with too high stride (#1306)
* Split `get_n_added_tokens` into separate method

* Modify `TokenizerImpl.with_truncation()` to raise an error if given bad parameters

* Return Python error if `tokenizer.with_truncation()` fails

* Add dummy variable assignment for `no_truncation()` case

* Unrelated fmt fix.

---------

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2023-07-28 09:16:44 +02:00
..
2023-03-08 11:27:47 +01:00
2022-10-05 16:59:01 +02:00
2023-04-19 14:55:24 +02:00
2023-06-26 10:46:59 +02:00
2023-03-08 11:27:47 +01:00
2022-05-05 15:48:40 +02:00