Add missing whitespace to multiline strings (#13916)
This commit is contained in:
@@ -3059,7 +3059,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
|
||||
pair_ids = pair_ids[:-num_tokens_to_remove]
|
||||
else:
|
||||
logger.error(
|
||||
f"We need to remove {num_tokens_to_remove} to truncate the input"
|
||||
f"We need to remove {num_tokens_to_remove} to truncate the input "
|
||||
f"but the second sequence has a length {len(pair_ids)}. "
|
||||
f"Please select another truncation strategy than {truncation_strategy}, "
|
||||
f"for instance 'longest_first' or 'only_first'."
|
||||
@@ -3250,7 +3250,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
|
||||
"""
|
||||
assert already_has_special_tokens and token_ids_1 is None, (
|
||||
"You cannot use ``already_has_special_tokens=False`` with this tokenizer. "
|
||||
"Please use a slow (full python) tokenizer to activate this argument."
|
||||
"Please use a slow (full python) tokenizer to activate this argument. "
|
||||
"Or set `return_special_tokens_mask=True` when calling the encoding method "
|
||||
"to get the special tokens mask in any tokenizer. "
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user