alontalmor / MultiQA

138 stars 23 forks source link

Error in Building dataset. #3

Closed rsanjaykamath closed 5 years ago

rsanjaykamath commented 5 years ago

Hello,

I tried to build the dataset as given in the readme file.

Using this command: python build_dataset.py --dataset_name HotpotQA --split train --output_file datasets/HotpotQA/ --n_processes 10

I get this error:

Traceback (most recent call last): File "build_dataset.py", line 100, in main() File "build_dataset.py", line 28, in main preprocessor, args.sample_size, args.input_file) File "/people/sanjay/multiqa/datasets/multiqa_factory.py", line 13, in build_dataset contexts = dataset_class.build_contexts(preprocessor, split, sample_size, dataset_version, dataset_flavor, dataset_specific_props, input_file) File "/people/sanjay/multiqa/datasets/HotpotQA/hotpotqa.py", line 136, in build_contexts if 'original_context_order' in dataset_specific_props: TypeError: argument of type 'NoneType' is not iterable

alontalmor commented 5 years ago

Hi I've fixed this bug, please pull and try to run again. If you have any additional problems or question i'd be happy to help. Alon

rsanjaykamath commented 5 years ago

Ok the script runs fine now. Thanks for fixing it. I'll run the code and if I find something I'll comment here or will close this issue by the end of the day.

Thanks again, great work!