Datasets:

ArXiv:
License:

"An error occurred while generating the dataset"

#3
by petrgazarov - opened

When I try to pull the dataset from Hugging Face, I'm facing the following error:

File "/Users/petrgazarov/workspace/anneal/llm-router-data-creator/.venv/lib/python3.12/site-packages/datasets/load.py", line 2609, in load_dataset
builder_instance.download_and_prepare(
File "/Users/petrgazarov/workspace/anneal/llm-router-data-creator/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/Users/petrgazarov/workspace/anneal/llm-router-data-creator/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/petrgazarov/workspace/anneal/llm-router-data-creator/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/Users/petrgazarov/workspace/anneal/llm-router-data-creator/.venv/lib/python3.12/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

After commenting out the code inside the datasets lib that generated the error, here is another error that may provide better insights:

datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 2 new columns (id, entity) and 1 missing columns (task).

This happened while the json dataset builder was generating data using

hf://datasets/zjunlp/iepile/IE-en/EE/CrudeOilNews/test.json (at revision a58f687a982153431a96fa82472ad6a402e70820)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Sign up or log in to comment