fix the warning message of overflowed sequence (#7151)

This commit is contained in:
Xi Ye 2020-09-16 06:40:57 -05:00 committed by GitHub
parent af8425b749
commit 08bfc1718a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2477,7 +2477,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin):
logger.warning(
"Token indices sequence length is longer than the specified maximum sequence length "
"for this model ({} > {}). Running this sequence through the model will result in "
"indexing errors".format(len(ids), self.model_max_length)
"indexing errors".format(len(encoded_inputs["input_ids"]), self.model_max_length)
)
# Padding