mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-30 17:52:35 +06:00
typo (#7001)
apologies for the tiny PRs, just sending those as I find them.
This commit is contained in:
parent
60fc03290b
commit
c18f5916a0
@ -1609,7 +1609,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin):
|
||||
)
|
||||
tokenizer.add_tokens(token, special_tokens=bool(token in special_tokens))
|
||||
|
||||
# Check all our special tokens are registrered 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(
|
||||
|
Loading…
Reference in New Issue
Block a user