Datasets:
Data loading is not working
#6
by
yunsukim86
- opened
load_dataset
doesn't work. Also the dataset viewer is not working.
Error details:
Error code: ConfigNamesError
Exception: FileNotFoundError
Message: Couldn't find a dataset script at /src/services/worker/csebuetnlp/CrossSum/CrossSum.py or any data file in the same directory. Couldn't find 'csebuetnlp/CrossSum' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in csebuetnlp/CrossSum.
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 55, in compute_config_names_response
for config in sorted(get_dataset_config_names(path=dataset, token=hf_token))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 351, in get_dataset_config_names
dataset_module = dataset_module_factory(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1508, in dataset_module_factory
raise FileNotFoundError(
FileNotFoundError: Couldn't find a dataset script at /src/services/worker/csebuetnlp/CrossSum/CrossSum.py or any data file in the same directory. Couldn't find 'csebuetnlp/CrossSum' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in csebuetnlp/CrossSum.
I think the issue is that, for the script to be recognized, it must have the same name as the dataset, i.e. CrossSum.py
instead of crosssum.py
.
Note that the viewer is no longer supported for datasets with a script. You can try to switch to a "data-only" dataset if having the viewer is important for your dataset (https://huggingface.co/docs/hub/datasets-data-files-configuration)