Skip to content

Commit

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

small grammar update in tokenization_utils_base.py comment
  • Loading branch information
DavidLemayian authored Sep 13, 2024
1 parent e39b6c1 commit 7bb1c99
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 7bb1c99

Please sign in to comment.