Skip to content

Commit

Permalink
Typo fix in error message (#29535)
Browse files Browse the repository at this point in the history
  • Loading branch information
clefourrier authored Mar 8, 2024
1 parent 8ee1d47 commit 14536c3
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 @@ -1594,7 +1594,7 @@ def __init__(self, **kwargs):
self.truncation_side = kwargs.pop("truncation_side", self.truncation_side)
if self.truncation_side not in ["right", "left"]:
raise ValueError(
f"Padding side should be selected between 'right' and 'left', current value: {self.truncation_side}"
f"Truncation side should be selected between 'right' and 'left', current value: {self.truncation_side}"
)

self.model_input_names = kwargs.pop("model_input_names", self.model_input_names)
Expand Down

0 comments on commit 14536c3

Please sign in to comment.