Datasets:
Tasks:
Automatic Speech Recognition
Modalities:
Audio
Languages:
Polish
Size:
10K<n<100K
DOI:
License:
File size: 1,608 Bytes
349c94d 501d4a0 349c94d 0d750c4 349c94d 4d73d6d 349c94d 4d73d6d 349c94d 37cc976 4d73d6d 501d4a0 349c94d 2a586a9 216f3b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
import datasets
from datasets import load_dataset
import pandas as pd
# test reading all subsets for "test" split
_BIGOS_SUBSETS = ["pjatk-clarin_mobile-15", "pjatk-clarin_studio-15", "fair-mls-20", "mailabs-corpus_librivox-19", "mozilla-common_voice_15-23", "pwr-azon_read-20", "pwr-azon_spont-20", "pwr-maleset-unk", "pwr-shortwords-unk", "pwr-viu-unk", "google-fleurs-22", "polyai-minds14-21"]
splits=["test", "validation", "train"]
# Refer to documentation for the descriptions of splits and subsets
print("Testing dataset all subsets")
dataset_name = "pl-asr-bigos-v2"
hf_account = "amu-cai"
hf_db_name="/".join([hf_account,dataset_name])
print(hf_db_name, hf_db_name)
print(f"Testing dataset: {dataset_name} from account {hf_account} for all subsets")
print("Checking build script locally - test split")
dataset_local = load_dataset(f"{dataset_name}.py", "all")
print(set(dataset_local["test"]["speaker_age"]))
print(set(dataset_local["validation"]["speaker_age"]))
print(set(dataset_local["train"]["speaker_age"]))
print(set(dataset_local["test"]["speaker_gender"]))
print(set(dataset_local["validation"]["speaker_gender"]))
print(set(dataset_local["train"]["speaker_gender"]))
print(dataset_local)
print(dataset_local["test"][0])
print(dataset_local["validation"][0])
print(dataset_local["train"][0])
df_test = pd.DataFrame(dataset_local['test'])
print("Checking build script on huggingface.co")
dataset_hf = load_dataset(hf_db_name, "all", download_mode="force_redownload")
print(dataset_hf)
print(dataset_hf["test"][0])
print(dataset_hf["validation"][0])
print(dataset_hf["train"][0])
|