Skip to content

Commit

Permalink
chore: fix typo in comment in tokenization_utils_base.py (huggingface…
Browse files Browse the repository at this point in the history
…#33466)

docs: update grammar in comment in tokenization_utils_base.py

small grammar update in tokenization_utils_base.py comment
  • Loading branch information
DavidLemayian authored and itazap committed Sep 20, 2024
1 parent 74e8d74 commit c6d97e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/tokenization_utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3457,7 +3457,7 @@ def pad(
if isinstance(encoded_inputs, (list, tuple)) and isinstance(encoded_inputs[0], Mapping):
encoded_inputs = {key: [example[key] for example in encoded_inputs] for key in encoded_inputs[0].keys()}

# The model's main input name, usually `input_ids`, has be passed for padding
# The model's main input name, usually `input_ids`, has been passed for padding
if self.model_input_names[0] not in encoded_inputs:
raise ValueError(
"You should supply an encoding or a list of encodings to this method "
Expand Down

0 comments on commit c6d97e0

Please sign in to comment.