File size: 2,842 Bytes
be5af32
 
 
 
 
 
 
 
 
 
 
 
 
40eeae5
be5af32
891314b
 
 
 
b129909
891314b
b129909
891314b
 
 
 
 
 
 
 
 
b129909
891314b
b129909
891314b
 
b129909
891314b
 
b129909
891314b
 
b129909
891314b
 
 
 
b129909
 
891314b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bf71b86
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
language:
- zh
- en
tags:
- automatic-speech-recognition
- code-switching
- audio
- speech-processing
license: cc-by-nc-sa-4.0
task_categories:
- automatic-speech-recognition
---

## Dataset Summary

<div align="center">
    <img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" width="50" height="50"/>
</div>

This dataset is a curated compilation of **[SECoMiCSC](https://magichub.com/datasets/chinese-english-code-mixing-conversational-speech-corpus/)**, **[DevCECoMiCSC](https://magichub.com/datasets/dev-set-of-chinese-english-code-mixing-conversational-speech-corpus/)**, and **[BAAI/CS-Dialogue](https://huggingface.co/datasets/BAAI/CS-Dialogue)**, specifically processed for Code-Switching ASR research.

```text
root/
├── audio/
│   ├── SECoMiCSC/        # Chunked segments from SECoMiCSC
│   ├── DevCECoMiCSC/     # Chunked segments from DevCECoMiCSC
│   └── CS_Dialogue/      # Extracted <MIX> segments from BAAI/CS-Dialogue
├── metadata.jsonl        # Universal index containing paths, transcripts, and metadata
└── data_preparation.py   # Script to reproduce this dataset from raw sources
```

## Usage

```python
from datasets import load_dataset, Audio

# Load with streaming (Recommended)
data = load_dataset("1uckyan/code-switch_chunks", split="train", streaming=True)

# Important: Cast to 16kHz
data = data.cast_column("audio", Audio(sampling_rate=16000))

for sample in data:
    print(f"Source: {sample['source']} | Text: {sample['sentence']}")
    break
```


## Data Sources & Creation


| Source Dataset | Original Content | Processing / Cleaning Logic |
| --- | --- | --- |
| **SECoMiCSC** | Conversational Speech | **VAD-based Chunking**: Split >1.8s gaps, merged to 5-15s segments.
| **DevCECoMiCSC** | Conversational Speech | **VAD-based Chunking**: Same as above. |
| **BAAI/CS-Dialogue** | Dialogue | **Tag Filtering**: Only retained utterances tagged as <MIX>



## Reproducibility

We provide the `data_preparation.py` script in this repository to ensure the transparency and reproducibility of our data processing pipeline.

If you have access to the raw source datasets, you can recreate this specific processed version by running:

```bash
python data_preparation.py \
  --secomicsc_root /path/to/local/ASR-SECoMiCSC \
  --dev_root /path/to/local/ASR-DevCECoMiCSC \
  --cs_dialogue_root /path/to/local/CS_Dialogue/data/short_wav \
  --output_dir ./output_Dataset

```

## License & Citations

This dataset is a derivative work. We adhere to the licenses of the original source datasets:

* **BAAI/CS-Dialogue**: Licensed under **CC BY-NC-SA 4.0**.
* **SECoMiCSC / DevCECoMiCSC**: Please refer to their original publications for usage rights.

If you use this dataset, please cite the original authors of the source datasets and our work.