KeyError: 1000000000 write_predictions (run_squad.py)
Face the below issue while running squad.
Traceback (most recent call last):
File "run_squad.py", line 1286, in
I also encountered this problem, when I used a pre-trained model XLNetForQuestionAnsweringSimple to predict a QA task.
result = evaluate(args, model, tokenizer, prefix=global_step)
File "run_factoid_pytorch.py", line 718, in evaluate args.verbose_logging, File "/home/zhuzz/anaconda3/envs/BioAsq9/lib/python3.7/site-packages/transformers/data/metrics/squad_metrics.py", line 640, in compute_predictions_log_probs result = unique_id_to_result[feature.unique_id] KeyError: 1000000000