acess dataset problem
RuntimeError Traceback (most recent call last)
/tmp/ipython-input-4250354657.py in <cell line: 0>()
1 from datasets import load_dataset, Audio
2
----> 3 dataset = load_dataset(
4 "facebook/voxpopuli", "nl", split="train", streaming=False
5 )
3 frames
/usr/local/lib/python3.12/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)
1390
1391 # Create a dataset builder
-> 1392 builder_instance = load_dataset_builder(
1393 path=path,
1394 name=name,
/usr/local/lib/python3.12/dist-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, **config_kwargs)
1130 if features is not None:
1131 features = _fix_for_backward_compatible_features(features)
-> 1132 dataset_module = dataset_module_factory(
1133 path,
1134 revision=revision,
/usr/local/lib/python3.12/dist-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)
1029 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).name}: {e1}"
1030 ) from None
-> 1031 raise e1 from None
1032 else:
1033 raise FileNotFoundError(f"Couldn't find any data file at {relative_to_absolute_path(path)}.")
/usr/local/lib/python3.12/dist-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, data_dir, data_files, cache_dir, **download_kwargs)
987 proxies=download_config.proxies,
988 )
--> 989 raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")
990 except EntryNotFoundError:
991 # Use the infos from the parquet export except in some cases:
RuntimeError: Dataset scripts are no longer supported, but found voxpopuli.py
have you tried to use the parquet files directly?
where is this dataset located?
im looking in the huggingface voxpopuli dataset and it looks like there are a lot of tsv files
the nl folder has a tab separated value training dataset
https://huggingface.co/datasets/facebook/voxpopuli/tree/main/data/nl
you can either download and load it manually or possibly download from hugginface api with the following code
from datasets import load_dataset
from huggingface_hub import hf_hub_download
import pandas as pd
tsv_path = hf_hub_download(
repo_id="facebook/voxpopuli",
filename="data/nl/asr_train.tsv",
repo_type="dataset"
)
df = pd.read_csv(tsv_path, sep='\t')
print(df.head())
for year in range(2009, 2020):
try:
audio_path = hf_hub_download(
repo_id="facebook/voxpopuli",
filename=f"data/nl/audios/{year}.tar.gz",
repo_type="dataset"
)
print(f"Downloaded {year}.tar.gz")
except:
print(f"Year {year} not available")