Spaces:
Sleeping
Sleeping
jefffffff9 Claude Sonnet 4.6 commited on
Commit ·
c8517b6
1
Parent(s): 262db3e
Cell 4: remove Common Voice (moved to Mozilla Data Collective, off HF)
Browse filesCommon Voice Bambara (bm) and Fula (ff) are no longer on HuggingFace.
EXTERNAL_DATASETS is now empty with commented placeholder.
Bambara training path: user corrections from sahel-agri-feedback only.
Fula training path: WaxalNLP ful_asr (Cell 8) + corrections.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
48 unmodified lines4950515253545548 unmodified lines"id": "cell-ext-config","metadata": {},"outputs": [],"source": "# ── Cell 4: External dataset configuration ───────────────────────────────────\n# Add or remove entries to include additional HF datasets.\n# Each entry: repo_id, config (language code), split, text column, lang tag, max samples.\n#\n# Common Voice Bambara ('bm') is enabled by default — it is the primary\n# large-scale Bambara ASR source since WaxalNLP has no Bambara subset.\n# Common Voice Fula ('ff') is enabled as a supplement to WaxalNLP ful_asr.\n#\n# ⚠️ Common Voice requires accepting the dataset terms on HuggingFace:\n# https://huggingface.co/datasets/mozilla-foundation/common_voice_17_0\n# Your HF_TOKEN must belong to an account that has accepted them.\n\nEXTERNAL_DATASETS = [\n {\n 'enabled' : True, # PRIMARY Bambara source (WaxalNLP has no bam)\n 'repo_id' : 'mozilla-foundation/common_voice_17_0',\n 'config' : 'bm', # Bambara\n 'split' : 'train',\n 'text_col' : 'sentence',\n 'lang' : 'bam',\n 'max_samples': 5_000,\n },\n {\n 'enabled' : True, # Supplement to WaxalNLP ful_asr\n 'repo_id' : 'mozilla-foundation/common_voice_17_0',\n 'config' : 'ff', # Fulah / Fula\n 'split' : 'train',\n 'text_col' : 'sentence',\n 'lang' : 'ful',\n 'max_samples': 3_000,\n },\n # Add more datasets here — any HF dataset with an 'audio' column works:\n # {\n # 'enabled' : False,\n # 'repo_id' : 'your/dataset',\n # 'config' : 'subset_name',\n # 'split' : 'train',\n # 'text_col' : 'transcription',\n # 'lang' : 'bam',\n # 'max_samples': 2_000,\n # },\n]\n\nactive = [d for d in EXTERNAL_DATASETS if d['enabled'] and d['lang'] == TRAIN_LANG]\nprint(f'External sources configured : {len(EXTERNAL_DATASETS)}')\nprint(f'Active for lang={TRAIN_LANG} : {len(active)}')\nfor d in active:\n print(f' • {d[\"repo_id\"]} / {d[\"config\"]} — up to {d[\"max_samples\"]} samples')"},{"cell_type": "code",48 unmodified lines4950515253545548 unmodified lines"id": "cell-ext-config","metadata": {},"outputs": [],"source": "# -- Cell 4: External dataset configuration -----------------------------------\n# Data source reality check (as of 2026):\n#\n# Bambara ASR:\n# - google/WaxalNLP -> no 'bam' subset exists\n# - Common Voice 'bm' -> moved to Mozilla Data Collective (not on HF)\n# - PRIMARY SOURCE -> user corrections in sahel-agri-feedback\n#\n# Fula ASR:\n# - google/WaxalNLP 'ful_asr' -> AVAILABLE (handled in Cell 8)\n# - Common Voice 'ff' -> moved to Mozilla Data Collective (not on HF)\n#\n# To add a new dataset later, add an entry with enabled=True.\n# Any HF dataset with an 'audio' column and a text column works.\n\nEXTERNAL_DATASETS = [\n # Example -- uncomment and set enabled=True when a Bambara HF dataset appears:\n # {\n # 'enabled' : False,\n # 'repo_id' : 'MALIBA-AI/bambara-asr', # check HF for availability\n # 'config' : None,\n # 'split' : 'train',\n # 'text_col' : 'transcription',\n # 'lang' : 'bam',\n # 'max_samples': 5_000,\n # },\n]\n\nactive = [d for d in EXTERNAL_DATASETS if d.get('enabled') and d.get('lang') == TRAIN_LANG]\nprint(f'External sources active for {TRAIN_LANG}: {len(active)}')\nif not active:\n if TRAIN_LANG == 'bam':\n print('Bambara: no external HF dataset available.')\n print(' Training will use user corrections from sahel-agri-feedback.')\n print(' Collect corrections via the Space to grow this dataset over time.')\n elif TRAIN_LANG == 'ful':\n print('Fula: WaxalNLP ful_asr loaded in Cell 8 -- no extra external source needed.')"},{"cell_type": "code",
notebooks/kaggle_master_trainer.ipynb+1-1