Datasets:
Dataset Generation Error
Hi! Sorry to bother, but when I try to load the dataset, I get this error:
Generating train split: 0%
0/516819 [00:00<?, ? examples/s]
JSONDecodeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id)
1725 _time = time.time()
-> 1726 for key, record in generator:
1727 if max_shard_size is not None and writer._num_bytes > max_shard_size:
10 frames
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The above exception was the direct cause of the following exception:
DatasetGenerationError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id)
1760 if isinstance(e, SchemaInferenceError) and e.context is not None:
1761 e = e.context
-> 1762 raise DatasetGenerationError("An error occurred while generating the dataset") from e
1763
1764 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)
DatasetGenerationError: An error occurred while generating the dataset
I installed datasets via !pip install -U datasets
Is there anything I can do?
Thanks,
Karin
I am getting the same issue on datasets 2.16.1
Thanks for reporting, @karinvyoralova .
We are investigating it.
Might be related: it seems that the source data is no longer available: https://s3.us-east-2.amazonaws.com/mrqa/release/v2/train/SQuAD.jsonl.gz
- See #4
Could you please retry, once that we have fixed #4?