Datasets:

Modalities:
Audio
Text
ArXiv:
Libraries:
Datasets
License:

Error Loading Specific Language Subsets of Common Voice Dataset (ValueError: BuilderConfig not found)

#31
by braindeck - opened

Hi everyone,
I'm encountering an issue when trying to load specific language subsets of the Common Voice dataset (currently using version 17.0) with the Hugging Face datasets library.
I'm attempting to load the Hindi portion of the dataset using the following code:

from datasets import load_dataset

Attempt to load the Hindi split of the Common Voice 17.0 dataset

cv_17_hi = load_dataset("mozilla-foundation/common_voice_17_0", "hi", split="train")

This consistently results in the following error:

Resolving data files: 100%
 263/263 [00:00<00:00, 1.99it/s]
Resolving data files: 100%
 108/108 [00:00<00:00, 350.76it/s]
Resolving data files: 100%
 116/116 [00:00<00:00, 3060.28it/s]

ValueError Traceback (most recent call last)
/tmp/ipython-input-1110098447.py in <cell line: 0>()
2
3 # Load the Hindi split of the Common Voice 17.0 dataset
----> 4 cv_17_hi = load_dataset("mozilla-foundation/common_voice_17_0", "hi", split="train")

3 frames
/usr/local/lib/python3.11/dist-packages/datasets/builder.py in _create_builder_config(self, config_name, custom_features, **config_kwargs)
537 builder_config = self.builder_configs.get(config_name)
538 if builder_config is None and self.BUILDER_CONFIGS:
--> 539 raise ValueError(
540 f"BuilderConfig '{config_name}' not found. Available: {list(self.builder_configs.keys())}"
541 )

ValueError: BuilderConfig 'hi' not found. Available: ['default']

What I've Tried:
I've tried using different language codes (e.g., "en", "fr", etc.) in place of "hi", and I receive the same BuilderConfig not found error.
I've also tried loading different versions of the Common Voice dataset (e.g., common_voice_16_0) with the same language codes, and the error persists across versions.

Any guidance or insights would be greatly appreciated!

Sign up or log in to comment