Datasets:
Dataset Viewer issue
#3
by
akhikhan123
- opened
The dataset viewer is not working.
Error details:
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 154, in compute
compute_split_names_from_info_response(
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 126, in compute_split_names_from_info_response
config_info_response = get_previous_step_or_raise(kind="config-info", dataset=dataset, config=config)
File "/src/libs/libcommon/src/libcommon/simple_cache.py", line 566, in get_previous_step_or_raise
raise CachedArtifactError(
libcommon.simple_cache.CachedArtifactError: The previous step failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 499, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/folder_based_builder/folder_based_builder.py", line 181, in _split_generators
raise ValueError(
ValueError: Metadata files hf://datasets/akhikhan123/BanglaEnglishMixedAsrDataset@aa6d558aebf7beb1c98e0d3e6a5832356074320f/Speaker10/metadata.csv and hf://datasets/akhikhan123/BanglaEnglishMixedAsrDataset@aa6d558aebf7beb1c98e0d3e6a5832356074320f/Speaker3/metadata.csv have different features: ('hf://datasets/akhikhan123/BanglaEnglishMixedAsrDataset@aa6d558aebf7beb1c98e0d3e6a5832356074320f/Speaker3/metadata.csv', {'file_name': Value(dtype='string', id=None), 'transcription': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None)}) != {'file_name': Value(dtype='string', id=None), 'transcription': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None), 'Unnamed: 3': Value(dtype='float64', id=None), 'Unnamed: 4': Value(dtype='float64', id=None), 'Unnamed: 5': Value(dtype='float64', id=None), 'Unnamed: 6': Value(dtype='float64', id=None), 'Unnamed: 7': Value(dtype='float64', id=None), 'Unnamed: 8': Value(dtype='float64', id=None), 'Unnamed: 9': Value(dtype='float64', id=None), 'Unnamed: 10': Value(dtype='float64', id=None), 'Unnamed: 11': Value(dtype='float64', id=None), 'Unnamed: 12': Value(dtype='string', id=None)}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 72, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 572, in get_dataset_split_names
info = get_dataset_config_info(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 504, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
The metadata.csv files have different sets of columns (ie: file_name,transcription,speaker_id
vs file_name,transcription
).
One solution is to ensure all of them have the same set of columns. The other one is to load them as different subsets (or "configs"), see https://huggingface.co/docs/hub/datasets-manual-configuration
I tried like a lot by changing...I think the only way to access or upload it perfectly through by coding?i don't know how to do it??