Timit_asr dataset cannot be previewed recently
Opened by YingLi001 (closed)

## Dataset viewer issue for '*timit_asr*'

**Link:** *https://huggingface.co/datasets/timit_asr*

Issue: The timit-asr dataset cannot be previewed recently.

Am I the one who added this dataset ? Yes-No
No

Comments:
Thanks for reporting. The bug has already been detected, and we hope to fix it soon.

TIMIT is now a dataset that requires manual download, see #4145 

Therefore it might take a bit more time to fix it

> TIMIT is now a dataset that requires manual download, see #4145
> 
> Therefore it might take a bit more time to fix it

Thank you for your quickly response. Exactly, I also found the manual download issue in the morning. But when I used *list_datasets()* to check the available datasets, *'timit_asr'* is still in the list. So I am a little bit confused. If *'timit_asr'* need to be manually downloaded, does that mean we can **not** automatically download it **any more** in the future?

Yes exactly. If you try to load the dataset it will ask you to download it manually first, and to pass the downloaded and extracted data like `load_dataset("timir_asr", data_dir="path/to/extracted/data")`

The URL we were using was coming from a host that doesn't have the permission to redistribute the data, and the dataset owners (LDC) notified us about it.

I downloaded the timit_asr data and unzipped. But I can't run my code. Could you resolve this problem for me? Thanks

          import soundfile as sf
          import torch
          from datasets import load_dataset
          dataset = load_dataset("timit_asr", data_dir="/Users/nguyenvannham/Documents/test_case/data")
          
          
          Generating train split: 0 examples [00:00, ? examples/s]

Generating train split: 0 examples [00:00, ? examples/s]Traceback (most recent call last):

  File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
    for key, record in generator:

  File "/Users/nguyenvannham/.cache/huggingface/modules/datasets_modules/datasets/timit_asr/43f9448dd5db58e95ee48a277f466481b151f112ea53e27f8173784da9254fb2/timit_asr.py", line 138, in _generate_examples
    with txt_path.open(encoding="utf-8") as op:

  File "/opt/anaconda3/envs/audio/lib/python3.9/pathlib.py", line 1252, in open
    return io.open(self, mode, buffering, encoding, errors, newline,

  File "/opt/anaconda3/envs/audio/lib/python3.9/pathlib.py", line 1120, in _opener
    return self._accessor.open(self, flags, mode)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/nguyenvannham/Documents/test_case/data/train/DR1/FCJF0/SA1.WAV.TXT'


The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/var/folders/t9/l8d3rwpn1k33_gjtqs732lzc0000gn/T/ipykernel_3891/1203313828.py", line 1, in <module>
    dataset = load_dataset("timit_asr", data_dir="/Users/nguyenvannham/Documents/test_case/data")

  File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/load.py", line 1758, in load_dataset
    builder_instance.download_and_prepare(

  File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 860, in download_and_prepare
    self._download_and_prepare(

  File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1612, in _download_and_prepare
    super()._download_and_prepare(

  File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 953, in _download_and_prepare
    self._prepare_split(split_generator, **prepare_split_kwargs)

  File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1450, in _prepare_split
    for job_id, done, content in self._prepare_split_single(

  File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1607, in _prepare_split_single
    raise DatasetGenerationError("An error occurred while generating the dataset") from e

DatasetGenerationError: An error occurred while generating the dataset