Update README.md
Browse files
README.md
CHANGED
|
@@ -1,33 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
num_bytes: 12858581773.6
|
| 15 |
-
num_examples: 65120
|
| 16 |
-
- name: validation
|
| 17 |
-
num_bytes: 1154465218.2
|
| 18 |
-
num_examples: 5663
|
| 19 |
-
- name: test
|
| 20 |
-
num_bytes: 2621750086.708
|
| 21 |
-
num_examples: 12492
|
| 22 |
-
download_size: 14739310268
|
| 23 |
-
dataset_size: 16634797078.508001
|
| 24 |
-
configs:
|
| 25 |
-
- config_name: default
|
| 26 |
-
data_files:
|
| 27 |
-
- split: train
|
| 28 |
-
path: data/train-*
|
| 29 |
-
- split: validation
|
| 30 |
-
path: data/validation-*
|
| 31 |
-
- split: test
|
| 32 |
-
path: data/test-*
|
| 33 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[](https://huggingface.co/datasets/ming030890/mdcc)
|
| 2 |
+
|
| 3 |
+
# MDCC: A New Cantonese ASR Dataset
|
| 4 |
+
|
| 5 |
+
## 📦 Update [1 Feb, 2024]
|
| 6 |
+
|
| 7 |
+
The `.wav` data of the dataset is available here:
|
| 8 |
+
🔗 [Google Drive Link](https://drive.google.com/file/d/1epfYMMhXdBKA6nxPgUugb2Uj4DllSxkn/view?usp=drive_link)
|
| 9 |
+
**Note:** For research purposes only.
|
| 10 |
+
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
## 📖 Overview
|
| 14 |
+
|
| 15 |
+
MDCC (“**M**ulti-**D**omain **C**antonese **C**orpus”) is a large-scale Cantonese automatic speech recognition (ASR) dataset compiled from multiple domains. It provides:
|
| 16 |
+
|
| 17 |
+
- **Audio**: `.wav` recordings of spontaneous and read speech
|
| 18 |
+
- **Transcript**: UTF‑8 plain‑text transcripts
|
| 19 |
+
- **Speaker metadata**: sex
|
| 20 |
+
- **Duration**: audio length in seconds
|
| 21 |
+
|
| 22 |
+
This repo contains metadata files and a conversion script to turn the data into a Hugging Face-compatible dataset.
|
| 23 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
---
|
| 25 |
+
|
| 26 |
+
## 📝 Paper & Citation
|
| 27 |
+
|
| 28 |
+
Tiezheng Yu, Rita Frieske, Peng Xu, Samuel Cahyawijaya, Cheuk Tung Shadow Yiu, Holy Lovenia,
|
| 29 |
+
Wenliang Dai, Elham J. Barezi, Qifeng Chen, Xiaojuan Ma, Bertram E. Shi & Pascale Fung
|
| 30 |
+
**“Automatic Speech Recognition Datasets in Cantonese: A Survey and New Dataset”**
|
| 31 |
+
📄 [arXiv:2201.02419](https://arxiv.org/pdf/2201.02419.pdf)
|
| 32 |
+
|
| 33 |
+
```bibtex
|
| 34 |
+
@misc{yu2022automatic,
|
| 35 |
+
title = {Automatic Speech Recognition Datasets in Cantonese: A Survey and New Dataset},
|
| 36 |
+
author = {Tiezheng Yu and Rita Frieske and Peng Xu and Samuel Cahyawijaya and
|
| 37 |
+
Cheuk Tung Shadow Yiu and Holy Lovenia and Wenliang Dai and
|
| 38 |
+
Elham J. Barezi and Qifeng Chen and Xiaojuan Ma and
|
| 39 |
+
Bertram E. Shi and Pascale Fung},
|
| 40 |
+
year = {2022},
|
| 41 |
+
eprint = {2201.02419},
|
| 42 |
+
archivePrefix= {arXiv},
|
| 43 |
+
primaryClass = {cs.CL}
|
| 44 |
+
}
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## 📂 Repository Contents
|
| 50 |
+
|
| 51 |
+
```
|
| 52 |
+
.
|
| 53 |
+
├── cnt_asr_train_metadata.csv
|
| 54 |
+
├── cnt_asr_valid_metadata.csv
|
| 55 |
+
├── cnt_asr_test_metadata.csv
|
| 56 |
+
├── audio/ # .wav files
|
| 57 |
+
├── transcription/ # .txt transcripts
|
| 58 |
+
├── dataset_conversion.py
|
| 59 |
+
└── README.md
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
CSV columns:
|
| 63 |
+
- `audio_path` → renamed to `audio`
|
| 64 |
+
- `text_path` → loaded into `transcript` and then dropped
|
| 65 |
+
- `sex` → speaker gender
|
| 66 |
+
- `duration` → in seconds
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## 🚀 How to Load on Hugging Face
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
from datasets import load_dataset
|
| 74 |
+
|
| 75 |
+
ds = load_dataset("ming030890/mdcc")
|
| 76 |
+
print(ds["train"][0])
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
Example output:
|
| 80 |
+
```python
|
| 81 |
+
{
|
| 82 |
+
'audio': {
|
| 83 |
+
'path': '/path/to/audio.wav',
|
| 84 |
+
'array': [...],
|
| 85 |
+
'sampling_rate': 16000
|
| 86 |
+
},
|
| 87 |
+
'transcript': '你好,歡迎收聽…',
|
| 88 |
+
'sex': 'female',
|
| 89 |
+
'duration': 3.08
|
| 90 |
+
}
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
## 🛠️ Running the Conversion Script
|
| 96 |
+
|
| 97 |
+
1. Install dependencies:
|
| 98 |
+
```bash
|
| 99 |
+
pip install datasets huggingface_hub pandas
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
2. Export your Hugging Face token:
|
| 103 |
+
```bash
|
| 104 |
+
export HUGGINGFACE_HUB_TOKEN=<your_token>
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
3. Run the script:
|
| 108 |
+
```bash
|
| 109 |
+
python dataset_conversion.py
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
This will prepare the dataset and upload it to `ming030890/mdcc` on Hugging Face.
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
## 🔓 License & Access
|
| 117 |
+
|
| 118 |
+
1. Review the `MDCC_LICENSE` file in this repo.
|
| 119 |
+
2. Sign it and send to **chinatysonyu@gmail.com**.
|
| 120 |
+
3. Then download the dataset here:
|
| 121 |
+
🔗 [Google Drive Folder](https://drive.google.com/drive/folders/1HhNqrPpUTtjsJ0wZQCSKqet7ftmWb6eI?usp=sharing)
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
## ✅ Checkpoints
|
| 126 |
+
|
| 127 |
+
Download pretrained models here:
|
| 128 |
+
🔗 [Checkpoints Google Drive](https://drive.google.com/drive/folders/1BpGGOfr4IDYv0cWTowsDKkVmud7tNYzy?usp=sharing)
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## ⚠️ Disclaimer
|
| 133 |
+
|
| 134 |
+
I am **not the original author** of the dataset or the research paper.
|
| 135 |
+
This repo only provides a Hugging Face-compatible version of the public MDCC data.
|
| 136 |
+
|
| 137 |
+
For the original codebase and documentation, refer to:
|
| 138 |
+
🔗 https://github.com/HLTCHKUST/cantonese-asr
|