mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-08 13:48:19 +00:00
Make name parameter Optional[str] on BaseTokenizer
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
This commit is contained in:
@@ -209,7 +209,7 @@ class BaseTokenizer:
|
|||||||
"""
|
"""
|
||||||
return self._tokenizer.id_to_token(id)
|
return self._tokenizer.id_to_token(id)
|
||||||
|
|
||||||
def save(self, directory: str, name: str = None):
|
def save(self, directory: str, name: Optional[str] = None):
|
||||||
""" Save the current model to the given directory
|
""" Save the current model to the given directory
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
Reference in New Issue
Block a user