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
c18f5916
Unverified
Commit
c18f5916
authored
Sep 07, 2020
by
Stas Bekman
Committed by
GitHub
Sep 08, 2020
Browse files
typo (#7001)
apologies for the tiny PRs, just sending those as I find them.
parent
60fc0329
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 @
c18f5916
...
...
@@ -1609,7 +1609,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin):
)
tokenizer
.
add_tokens
(
token
,
special_tokens
=
bool
(
token
in
special_tokens
))
# Check all our special tokens are regist
r
ered as "no split" token (we don't cut them) and are in the vocab
# Check all our special tokens are registered as "no split" token (we don't cut them) and are in the vocab
added_tokens
=
tokenizer
.
sanitize_special_tokens
()
if
added_tokens
:
logger
.
warning
(
...
...
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