You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/evaluation/speech-audio.md
+40-50Lines changed: 40 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -663,15 +663,15 @@ Per-domain breakdowns are included automatically based on the `domain_label` fie
663
663
664
664
CoVoST 2 is a large-scale multilingual corpus for speech recognition (ASR) and speech translation (AST), built on Common Voice audio with translation references from Facebook's [CoVoST v2](https://github.com/facebookresearch/covost) release.
665
665
666
-
**Tasks:**ASR (monolingual transcription) and AST (X→en / en→X translation)
666
+
**Subtasks:**`covost2.asr` (monolingual transcription) and `covost2.st` (X→en / en→X translation)
667
667
668
668
**Splits:**`validation`, `test`
669
669
670
670
For non-alphabetic scripts (`zh-CN`, `ja`), evaluation reports Character Error Rate (CER) instead of Word Error Rate (WER); the choice is made per-sample via the `use_cer` flag set during data preparation.
671
671
672
672
### Dataset Location
673
673
674
-
- Benchmark is defined in [`nemo_skills/dataset/covost2/__init__.py`](https://github.com/NVIDIA-NeMo/Skills/blob/main/nemo_skills/dataset/covost2/__init__.py)
674
+
- Benchmark group is defined in [`nemo_skills/dataset/covost2/__init__.py`](https://github.com/NVIDIA-NeMo/Skills/blob/main/nemo_skills/dataset/covost2/__init__.py); per-subtask config lives in `covost2/asr/__init__.py` and `covost2/st/__init__.py`.
675
675
- Original benchmark source is hosted on [GitHub](https://github.com/facebookresearch/covost)
676
676
677
677
### Preparing CoVoST 2 Data
@@ -687,73 +687,63 @@ Unlike most other benchmarks on this page, **CoVoST 2 does not auto-download aud
687
687
688
688
and the corresponding `validated.tsv` (columns: `path, split, lang, sentence`).
689
689
690
-
The `--languages` flag selects which CoVoST 2 languages are prepared. For ASR it filters the source-language audio that is transcribed; for AST every valid X→en / en→X pair touching the listed languages is included. Omit it to prepare all 21 supported languages.
690
+
A single `prepare_data covost2` run produces both subtasks at once — `covost2/asr/{split}.jsonl` and `covost2/st/{split}.jsonl`. There is no `--task` flag; pass the parent group name (`covost2`), not the dotted subtask names.
691
691
692
-
=== "ASR"
692
+
The `--languages` flag selects which CoVoST 2 languages are prepared. For ASR it filters the source-language audio that is transcribed; for ST every valid X→en / en→X pair touching the listed languages is included. Omit it to prepare all 21 supported languages.
Each `--task` produces a separate manifest: `{split}-asr.jsonl` or `{split}-ast.jsonl` (e.g. `test-asr.jsonl`).
706
+
```
707
+
<data_dir>/covost2/
708
+
asr/test.jsonl # one record per (lang, audio) for transcription
709
+
st/test.jsonl # one record per (src→tgt, audio) for translation
710
+
audio/<lang>/<split>/...wav
711
+
```
719
712
720
713
## FLEURS
721
714
722
-
[FLEURS](https://huggingface.co/datasets/google/fleurs) (Few-shot Learning Evaluation of Universal Representations of Speech) is Google's multilingual speech benchmark covering 102 locales. It supports both ASR and AST.
715
+
[FLEURS](https://huggingface.co/datasets/google/fleurs) (Few-shot Learning Evaluation of Universal Representations of Speech) is Google's multilingual speech benchmark covering 102 locales.
716
+
717
+
**Subtasks:**`fleurs.asr` (monolingual transcription) and `fleurs.st` (`en_us` → locale and locale → `en_us` translation)
723
718
724
719
**Splits:**`train`, `dev`, `test`
725
720
726
721
CER (rather than WER) is used for these locales: `cmn_hans_cn`, `yue_hant_hk`, `ja_jp`, `th_th`, `lo_la`, `my_mm`, `km_kh`, `ko_kr`, `vi_vn`.
727
722
728
723
### Dataset Location
729
724
730
-
- Benchmark is defined in [`nemo_skills/dataset/fleurs/__init__.py`](https://github.com/NVIDIA-NeMo/Skills/blob/main/nemo_skills/dataset/fleurs/__init__.py)
725
+
- Benchmark group is defined in [`nemo_skills/dataset/fleurs/__init__.py`](https://github.com/NVIDIA-NeMo/Skills/blob/main/nemo_skills/dataset/fleurs/__init__.py); per-subtask config lives in `fleurs/asr/__init__.py` and `fleurs/st/__init__.py`.
731
726
- Original dataset is hosted on [HuggingFace](https://huggingface.co/datasets/google/fleurs)
732
727
733
728
### Preparing FLEURS Data
734
729
735
-
Audio is downloaded automatically from HuggingFace. As with CoVoST 2, `--task`produces `{split}-asr.jsonl`or `{split}-ast.jsonl`.
730
+
Audio is downloaded automatically from HuggingFace. A single `prepare_data fleurs` run produces both subtasks at once — `fleurs/asr/{split}.jsonl`and `fleurs/st/{split}.jsonl`. There is no `--task` flag; pass the parent group name (`fleurs`), not the dotted subtask names.
736
731
737
-
The `--languages` flag selects which FLEURS locales are prepared. For ASR it filters the source-language audio that is transcribed; for AST every (`en_us` → locale) and (locale → `en_us`) pair across the listed locales is included. Omit it to prepare all 102 locales.
732
+
The `--languages` flag selects which FLEURS locales are prepared. ASR records are emitted for the listed locales. ST records are emitted for every (`en_us` → locale) and (locale → `en_us`) pair touching the listed locales — even if `en_us`is not itself in `--languages`, since it is the pivot. Omit `--languages` to prepare all 102 locales.
0 commit comments