Datasets:
Tasks:
Automatic Speech Recognition
Modalities:
Audio
Languages:
Polish
Size:
10K<n<100K
DOI:
License:
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]) | |