Add tokenizer_file parameter to PreTrainedTokenizerFast docstring (#12624)

Co-authored-by: Lewis Bails <Lewis.Bails@infomedia.dk>
This commit is contained in:
Lewis Bails 2021-07-12 13:51:58 +02:00 committed by GitHub
parent f8f9a679a0
commit a882b9facb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,9 @@ INIT_TOKENIZER_DOCSTRING += """
tokenizer_object (:class:`tokenizers.Tokenizer`):
A :class:`tokenizers.Tokenizer` object from 🤗 tokenizers to instantiate from. See :doc:`Using tokenizers
from 🤗 tokenizers <../fast_tokenizers>` for more information.
tokenizer_file (:class:`str`):
A path to a local JSON file representing a previously serialized :class:`tokenizers.Tokenizer` object from
🤗 tokenizers.
"""
MODEL_TO_TRAINER_MAPPING = {