Closed valsworthen closed 5 years ago
I also have the same problem. The following operations may work:
iteritems()
with items()
in nq.eval.py.open(gzipped_input_file)
to open(gzipped_input_file, "rb")
in eval_utils.py.Indeed this fixes the problem, thanks.
Hello,
I am trying to generate predictions from the sample of the development set provided here. However, the script fails upon loading the gold data.
Input:
python natural_questions/make_test_data.py --gold_path sample/v1.0_sample_nq-dev-sample.jsonl.gz --output_path whatever
Error:
Specifically it fails at line 264 of
eval_utils.py
when trying to iterate over the gold file.Can you help me solve this issue?
Thanks a lot!