We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75edf33 commit 3ec1d35Copy full SHA for 3ec1d35
paddlenlp/transformers/tokenizer_utils_base.py
@@ -1619,7 +1619,7 @@ def convert_added_tokens(obj):
1619
# does include a vocab file path in it. However, if the vocab file
1620
# path included in json does not exist, such as was deleted, to make
1621
# it still work, use the vocab file under this dir.
1622
- elif not os.path.isfile(init_kwargs[args_name],
+ elif not os.path.isfile(init_kwargs[args_name] or
1623
'') and os.path.isfile(file_path):
1624
init_kwargs[args_name] = file_path
1625
# TODO(guosheng): avoid reduplication of position args and key word args
0 commit comments