From 7bb1c99800d235791dace10305731f377db8077b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Lemayian=20=E2=9C=A8?= <877919+DavidLemayian@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:25:20 +0300 Subject: [PATCH] chore: fix typo in comment in tokenization_utils_base.py (#33466) docs: update grammar in comment in tokenization_utils_base.py small grammar update in tokenization_utils_base.py comment --- src/transformers/tokenization_utils_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/tokenization_utils_base.py b/src/transformers/tokenization_utils_base.py index 93dea5ba09de36..b4490578a70916 100644 --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -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 "