Upload bert_tokenizer.py
Browse files- bert_tokenizer.py +1 -2
bert_tokenizer.py
CHANGED
@@ -38,8 +38,7 @@ def download_file(url, filename: str):
|
|
38 |
with open(filename, 'wb') as file:
|
39 |
file.write(res.content)
|
40 |
except:
|
41 |
-
raise RuntimeError("Error download
|
42 |
-
"'. You can download the model file into the current directory and rerun it.")
|
43 |
|
44 |
|
45 |
class ChineseBertTokenizer(BertTokenizerFast):
|
|
|
38 |
with open(filename, 'wb') as file:
|
39 |
file.write(res.content)
|
40 |
except:
|
41 |
+
raise RuntimeError("Error download file from '" + url)
|
|
|
42 |
|
43 |
|
44 |
class ChineseBertTokenizer(BertTokenizerFast):
|