Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
14536c33
"docs/source/vscode:/vscode.git/clone" did not exist on "49928892d6491ff5a49c12cbc34695f6fa7ac0ed"
Unverified
Commit
14536c33
authored
Mar 08, 2024
by
Clémentine Fourrier
Committed by
GitHub
Mar 08, 2024
Browse files
Typo fix in error message (#29535)
parent
8ee1d472
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/tokenization_utils_base.py
src/transformers/tokenization_utils_base.py
+1
-1
No files found.
src/transformers/tokenization_utils_base.py
View file @
14536c33
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment