modified: src/transformers/tokenization_utils.py

This commit is contained in:
Yohei Tamura 2020-01-09 14:00:32 +09:00 committed by Lysandre Debut
parent f599623a99
commit bfec203d4e

View File

@ -460,7 +460,7 @@ class PreTrainedTokenizer(object):
try:
tokenizer = cls(*init_inputs, **init_kwargs)
except OSError:
OSError(
raise OSError(
"Unable to load vocabulary from file. "
"Please check that the provided vocabulary is accessible and not corrupted."
)