Dataset Viewer issue

#1
by shivkumarganesh - opened

The dataset viewer is not working.

Error details:

Error code:   SplitsNamesError
Exception:    ValueError
Message:      Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('text', {}), NamedSplit('test'): ('audiofolder', {}), NamedSplit('validation'): ('text', {})}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/responses/splits.py", line 79, in get_splits_response
                  split_full_names = get_dataset_split_full_names(dataset, hf_token)
                File "/src/services/worker/src/worker/responses/splits.py", line 41, in get_dataset_split_full_names
                  for config in get_dataset_config_names(dataset, use_auth_token=hf_token)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 308, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1177, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1156, in dataset_module_factory
                  return HubDatasetModuleFactoryWithoutScript(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 773, in get_module
                  raise ValueError(f"Couldn't infer the same data file format for all splits. Got {module_names}")
              ValueError: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('text', {}), NamedSplit('test'): ('audiofolder', {}), NamedSplit('validation'): ('text', {})}

cc @albertvillanova @lhoestq @severo .

Hi @shivkumarganesh ,

Thanks for reporting. Indeed this is not a specific issue with the dataset viewer: your dataset is not loading.

As the error message says, we cannot infer the loading script to use from the extensions of your (unzipped) data files.

Please note that, out of the box, we support different data formats, but only one per dataset. If your data files have different formats, then you need to create a loading script with the specificity of you dataset. You can find how to do it in our docs:

albertvillanova changed discussion status to closed

Sign up or log in to comment