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
9337c6c6
Unverified
Commit
9337c6c6
authored
Apr 14, 2021
by
Joel Stremmel
Committed by
GitHub
Apr 14, 2021
Browse files
make embeddings plural in warning message (#11228)
parent
653076ca
Changes
1
Show 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 @
9337c6c6
...
...
@@ -1828,7 +1828,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin):
added_tokens
=
tokenizer
.
sanitize_special_tokens
()
if
added_tokens
:
logger
.
warning
(
"Special tokens have been added in the vocabulary, make sure the associated word embedding are fine-tuned or trained."
"Special tokens have been added in the vocabulary, make sure the associated word embedding
s
are fine-tuned or trained."
)
return
tokenizer
...
...
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