mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
modified: src/transformers/tokenization_utils.py
This commit is contained in:
parent
f599623a99
commit
bfec203d4e
@ -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."
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user