Skip to content

Commit

Permalink
Add tokenizer_file parameter to PreTrainedTokenizerFast docstring (#1…
Browse files Browse the repository at this point in the history
…2624)

Co-authored-by: Lewis Bails <Lewis.Bails@infomedia.dk>
  • Loading branch information
lewisbails and Lewis Bails authored Jul 12, 2021
1 parent f8f9a67 commit a882b9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transformers/tokenization_utils_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
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 = {
Expand Down

0 comments on commit a882b9f

Please sign in to comment.