"docs/source/vscode:/vscode.git/clone" did not exist on "49928892d6491ff5a49c12cbc34695f6fa7ac0ed"
Unverified Commit 14536c33 authored by Clémentine Fourrier's avatar Clémentine Fourrier Committed by GitHub
Browse files

Typo fix in error message (#29535)

parent 8ee1d472
......@@ -1594,7 +1594,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment