阅读理解 drcd报错 在一轮训练结束的时候报错。
Created by: natureLanguageQing
Traceback (most recent call last): File "run_mrc.py", line 325, in main(args) File "run_mrc.py", line 251, in main args=args) File "/home/aistudio/work/ERNIE/finetune/mrc.py", line 177, in evaluate em, f1, avg, total = eval_file(data_file, output_prediction_file) File "/home/aistudio/work/ERNIE/utils/cmrc2018_eval.py", line 140, in eval_file ground_truth_file = json.load(open(dataset_file, 'rb')) File "/opt/conda/envs/python35-paddle120-env/lib/python3.5/json/init.py", line 268, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/opt/conda/envs/python35-paddle120-env/lib/python3.5/json/init.py", line 312, in loads s.class.name)) TypeError: the JSON object must be str, not 'bytes' terminate called without an active exception Aborted (core dumped) 因为我不会用windows启动shell脚本,所以不会改。