Datasets:
Tasks:
Automatic Speech Recognition
Sub-tasks:
keyword-spotting
Size:
10K<n<100K
ArXiv:
Tags:
speech-recognition
License:
load_dataset API fails when loading PolyAI/minds14
#31
by
xcoder2
- opened
I am trying to load dataset "PolyAI/minds14" using huggingface load_dataset API but it fails with error message " 'NoneType' object is not callable". Full error stack trace is listed below:
2124 verification_mode = VerificationMode(
2125 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS
2126 )
2128 # Create a dataset builder
-> 2129 builder_instance = load_dataset_builder(
2130 path=path,
2131 name=name,
2132 data_dir=data_dir,
2133 data_files=data_files,
2134 cache_dir=cache_dir,
2135 features=features,
2136 download_config=download_config,
2137 download_mode=download_mode,
2138 revision=revision,
2139 token=token,
2140 storage_options=storage_options,
2141 trust_remote_code=trust_remote_code,
2142 _require_default_config_name=name is None,
2143 **config_kwargs,
2144 )
2146 # Return iterable dataset in case of streaming
2147 if streaming:
File ~/miniconda3/lib/python3.12/site-packages/datasets/load.py:1886, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)
1884 builder_cls = get_dataset_builder_class(dataset_module, dataset_name=dataset_name)
1885 # Instantiate the dataset builder
-> 1886 builder_instance: DatasetBuilder = builder_cls(
1887 cache_dir=cache_dir,
1888 dataset_name=dataset_name,
1889 config_name=config_name,
1890 data_dir=data_dir,
1891 data_files=data_files,
1892 hash=dataset_module.hash,
1893 info=info,
1894 features=features,
1895 token=token,
1896 storage_options=storage_options,
1897 **builder_kwargs,
1898 **config_kwargs,
1899 )
1900 builder_instance._use_legacy_cache_dir_if_possible(dataset_module)
1902 return builder_instance
TypeError: 'NoneType' object is not callable
I checked the huggingface cache folder: ~/.cache/huggingface/modules/datasets_modules/datasets/PolyAI--minds14/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
and found that the loading class file minds14.py
is empty.
Can someone take a look ?
Below is my code
from datasets import load_dataset, Audio
minds_14 = load_dataset("PolyAI/minds14", "en-US")