Dataset Viewer issue

#2
by Sanatbek - opened

The dataset viewer is not working. It was working a day ago after some of the irrelevant commits. It stops showing. Do you think this is some compliance issue with data. Because the dataset I uploaded is 100% original

Error details:

Error code:   ConfigNamesError
Exception:    DatasetWithScriptNotSupportedError
Message:      The dataset viewer doesn't support this dataset because it runs arbitrary python code. Please open a discussion in the discussion tab if you think this is an error and tag 

@lhoestq
	 and 

@severo
	.
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 65, 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 1512, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1481, in dataset_module_factory
                  return HubDatasetModuleFactoryWithScript(
                File "/src/services/worker/src/worker/utils.py", line 400, in raise_unsupported_dataset_with_script_or_init
                  raise DatasetWithScriptNotSupportedError(
              libcommon.exceptions.DatasetWithScriptNotSupportedError: The dataset viewer doesn't support this dataset because it runs arbitrary python code. Please open a discussion in the discussion tab if you think this is an error and tag 

@lhoestq
	 and 

@severo
	.

cc @albertvillanova @lhoestq @severo .

BTW. I can not remove loading script as it is loading from XML file

Hi ! We son't support showing XML data yet.
Feel free to open an issue at https://github.com/huggingface/datasets if you're interested though.

For now you'll need to convert the data to a supported format, e.g. parquet or jsonl

@lhoestq Please help me on this. I have created jsonl, parquet and script as well. The error still not going. What is happening on this, really burnt my time. I add one by one for debugging reason, nothing changed. If I delete script py file, it will say not found error. @albertvillanova @severo

I have also added YAML file. Please let me know. @lhoestq

The YAML must be defined at the top of the README.md file

See the documentation for more info: https://huggingface.co/docs/datasets/repository_structure

I also opened a Pull Request to add it: https://huggingface.co/datasets/Sanatbek/aspect-based-sentiment-analysis-uzbek/discussions/3

Thanks

Sanatbek changed discussion status to closed

Sign up or log in to comment