iioSnail commited on
Commit
20bc2dd
·
1 Parent(s): f72ad04

Upload bert_tokenizer.py

Browse files
Files changed (1) hide show
  1. 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 the file of '" + filename +
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):