qiufengyuyi / event_extraction

baidu aistudio event extraction competition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

我运行了gen_kfold_data.py,已经生成了文件,但还是报错,args.fold_index打印发现是None但不知道怎么解决

lh555 opened this issue · comments

commented

Traceback (most recent call last): File "D:/KG/eventKG/baidu2020_fork/run_event.py", line 60, in main() File "D:/KG/eventKG/baidu2020_fork/run_event.py", line 49, in main run_event_role_mrc(args) File "D:\KG\eventKG\baidu2020_fork\train_helper.py", line 111, in run_event_role_mrc train_datas = np.load("data/verify_neg_fold_data_{}/token_ids_train.npy".format(args.fold_index), allow_pickle=True) File "E:\machineLearning\Anaconda3\envs\tf1.12.0\lib\site-packages\numpy\lib\npyio.py", line 416, in load fid = stack.enter_context(open(os_fspath(file), "rb")) FileNotFoundError: [Errno 2] No such file or directory: 'data/verify_neg_fold_data_None/token_ids_train.npy' Process finished with exit code 1