Cannot load the the dataset.

#1
by jafarisbarov - opened

I tried to load your dataset with the following script:

from datasets import load_dataset

bb2 = load_dataset("tifosiai/butabytes-v2.0")

Download was successful, but I received the following error during the loading process:

Failed to read file 'zip://books-txt/anthology/1461306572.txt::/root/.cache/huggingface/datasets/downloads/1969f13ff0b7d0f0c3ca2ad1606eea38f522f87b022b580d509c0b7164fe1197' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Column() changed from object to number in row 0
ERROR:datasets.packaged_modules.json.json:Failed to read file 'zip://books-txt/anthology/1461306572.txt::/root/.cache/huggingface/datasets/downloads/1969f13ff0b7d0f0c3ca2ad1606eea38f522f87b022b580d509c0b7164fe1197' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Column() changed from object to number in row 0
---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/datasets/packaged_modules/json/json.py in _generate_tables(self, files)
    144                                 ) as f:
--> 145                                     dataset = json.load(f)
    146                             except json.JSONDecodeError:

14 frames
JSONDecodeError: Extra data: line 2 column 1 (char 2)

During handling of the above exception, another exception occurred:

ArrowInvalid                              Traceback (most recent call last)
ArrowInvalid: JSON parse error: Column() changed from object to number in row 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, job_id)
   2036             if isinstance(e, DatasetGenerationError):
   2037                 raise
-> 2038             raise DatasetGenerationError("An error occurred while generating the dataset") from e
   2039 
   2040         yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)

DatasetGenerationError: An error occurred while generating the dataset

Sign up or log in to comment