Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14185

Why does load_dataset give the num_rows = 0?

$
0
0
# The path├── audiofolder│├── clips││├── 01.mp3││├── 02.mp3││├── ...│├── test.csv│└── train.csv

code:

from datasets import load_dataset, load_metric, Audiodataset_train = load_dataset("audiofolder", data_dir='audiofolder',split ='train')dataset_test = load_dataset("audiofolder", data_dir='audiofolder', split ='test')print(dataset_train)print(dataset_test)`

test.csv and train.csv:

path,sentenceclips/common_voice_ar_24033120.mp3,بخيلclips/common_voice_ar_24050788.mp3,هذهالهديةلصديقي.clips/ARA NORM  0050.mp3,عَلَىحَدِّقَوْلِالْبَاحِثَةِclips/f3534c0910f1b896a693dec7cbf6c4ab.mp3,الْعِلْمُثَلَاثَةُأَشْبَارٍفَمَنْنَالَمِنْهُشِبْرًاشَمَخَبِأَنْفِهِوَظَنَّأَنَّهُنَالَهُ.

I tried to put csv files with clips in the same folder and deleted them from the path column: clips/But it gave the same result


Viewing all articles
Browse latest Browse all 14185

Trending Articles