WuHuRestaurant / xf_event_extraction2020Top1

科大讯飞2020事件抽取挑战赛第一名解决方案&完整事件抽取系统
536 stars 123 forks source link

AssertionError: pretrained bert file does not exist #32

Closed shenshengke701 closed 3 years ago

shenshengke701 commented 3 years ago

是少下载某个文件了吗? Traceback (most recent call last): File "train.py", line 225, in training(args) File "train.py", line 153, in training train_base(opt, info_dict, train_examples, dev_info) File "train.py", line 43, in train_base model = build_model(opt.task_type, opt.bert_dir, **model_para) File "/code/src_final/utils/model_utils.py", line 450, in build_model model = Role1Extractor(bert_dir=bert_dir, File "/code/src_final/utils/model_utils.py", line 188, in init super(Role1Extractor, self).init(bert_dir=bert_dir, File "/code/src_final/utils/model_utils.py", line 70, in init assert os.path.exists(bert_dir) and os.path.exists(config_path), \ AssertionError: pretrained bert file does not exist

saisai-ge commented 3 years ago

你需要自己下载Bert模型,然后加到bert_dir这个目录下

shenshengke701 commented 3 years ago

你需要自己下载 Bert 模型,然后加到 bert_dir 这个目录下

咦咦咦咦 确实是下载了 少个文件我误删了没发现 呜呜呜 谢谢您的回答