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
881945c0
Unverified
Commit
881945c0
authored
Apr 22, 2021
by
Takuya Makino
Committed by
GitHub
Apr 22, 2021
Browse files
Add space (#11373)
parent
5b5e4ca3
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 @
881945c0
...
...
@@ -2579,7 +2579,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin):
# The model's main input name, usually `input_ids`, has be 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"
"You should supply an encoding or a list of encodings to this method
"
f
"that includes
{
self
.
model_input_names
[
0
]
}
, but you provided
{
list
(
encoded_inputs
.
keys
())
}
"
)
...
...
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