brianyan918 commited on
Commit
e510280
·
1 Parent(s): 7272831
Files changed (16) hide show
  1. .gitattributes +1 -0
  2. README.md +49 -7
  3. ara.jsonl +3 -0
  4. ara.tar +3 -0
  5. cmn.jsonl +3 -0
  6. cmn.tar +3 -0
  7. cs_yodas.py +100 -0
  8. fra.jsonl +3 -0
  9. fra.tar.aa +3 -0
  10. fra.tar.ab +3 -0
  11. hin.jsonl +3 -0
  12. hin.tar +3 -0
  13. jpn.jsonl +3 -0
  14. jpn.tar +3 -0
  15. rus.jsonl +3 -0
  16. rus.tar +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,7 +1,49 @@
1
- Hello there - If you are looking for the CS-YODAS dataset, please check back after May 19th. I am currently at LREC presenting this work and will complete the data upload promptly after thge conference. Thank you for your interest in our work!
2
-
3
- -Brian
4
-
5
- ---
6
- license: cc-by-4.0
7
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CS-YODAS: A Mined Dataset of In-the-Wild Code-Switched Speech
2
+
3
+ ## Overview
4
+
5
+ CS-YODAS is a large-scale dataset of code-switched speech extracted from in-the-wild YouTube videos across six language pairs.
6
+
7
+ For details, see the paper: [CS-YODAS: A Mined Dataset of In-the-Wild Code-Switched Speech](https://lrec.elra.info/lrec2026-main-456)
8
+
9
+ ## Dataset Statistics
10
+
11
+ | Language | Code | Records |
12
+ |----------|------|---------|
13
+ | Arabic | ara | 245 |
14
+ | Mandarin Chinese | cmn | 439 |
15
+ | French | fra | 30,189 |
16
+ | Hindi | hin | 1,834 |
17
+ | Japanese | jpn | 242 |
18
+ | Russian | rus | 1,081 |
19
+ | **TOTAL** | | **34,030** |
20
+
21
+ ## How to Download
22
+
23
+ ```bash
24
+ git lfs install
25
+ git clone https://huggingface.co/datasets/byan/cs-yodas
26
+ ```
27
+
28
+ Or load in 🤗 Datasets:
29
+
30
+ ```python
31
+ from datasets import load_dataset
32
+ data = load_dataset("byan/cs-yodas")
33
+ ```
34
+
35
+ ## License
36
+
37
+ CC-BY-NC-4.0
38
+
39
+ ## Citation
40
+
41
+ ```bibtex
42
+ @inproceedings{yan2026cs,
43
+ title={CS-YODAS: A Mined Dataset of In-the-Wild Code-Switched Speech},
44
+ author={Yan et al.},
45
+ booktitle={Proceedings of LREC 2026},
46
+ year={2026},
47
+ doi={10.63317/3fir5kp98qyt}
48
+ }
49
+ ```
ara.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19254013052100a5c780d2342c21185babee874cec6a7cb5f14c67bae1435abb
3
+ size 929359
ara.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b72b946e6cf971f1e4130fad46e7368a28748e696d731722068db550a4b2bcc0
3
+ size 561602560
cmn.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cdad8b713ea41a598077dd0fedae14824eb2d6998970132d5b2c885201c7697
3
+ size 1175420
cmn.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:481ee979d308c99d3df40dd67cd55a7bbc5bd8fd98d316daa0d6ebd4f4b1cb81
3
+ size 900536320
cs_yodas.py ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ from pathlib import Path
3
+ import datasets
4
+
5
+ _CITATION = """\
6
+ @inproceedings{yan2026cs,
7
+ title={CS-YODAS: A Mined Dataset of In-the-Wild Code-Switched Speech},
8
+ author={Yan et al.},
9
+ booktitle={Proceedings of LREC 2026},
10
+ year={2026},
11
+ doi={10.63317/3fir5kp98qyt}
12
+ }
13
+ """
14
+
15
+ _DESCRIPTION = """\
16
+ CS-YODAS: A Mined Dataset of In-the-Wild Code-Switched Speech
17
+ """
18
+
19
+ _HOMEPAGE = "https://lrec.elra.info/lrec2026-main-456"
20
+
21
+ _LICENSE = "CC-BY-NC-4.0"
22
+
23
+ _LANGUAGES = ["ara", "cmn", "fra", "hin", "jpn", "rus"]
24
+
25
+
26
+ class CSYodasConfig(datasets.BuilderConfig):
27
+ """Builder config for CS-YODAS dataset."""
28
+
29
+ def __init__(self, language, **kwargs):
30
+ super(CSYodasConfig, self).__init__(**kwargs)
31
+ self.language = language
32
+
33
+
34
+ class CSYodas(datasets.GeneratorBasedBuilder):
35
+ """CS-YODAS: A Mined Dataset of In-the-Wild Code-Switched Speech"""
36
+
37
+ BUILDER_CONFIGS = [
38
+ CSYodasConfig(
39
+ name=lang,
40
+ language=lang,
41
+ version=datasets.Version("1.0.0"),
42
+ description=f"CS-YODAS {lang} subset",
43
+ )
44
+ for lang in _LANGUAGES
45
+ ]
46
+
47
+ DEFAULT_CONFIG_NAME = "fra"
48
+
49
+ def _info(self):
50
+ return datasets.DatasetInfo(
51
+ description=_DESCRIPTION,
52
+ features=datasets.Features(
53
+ {
54
+ "id": datasets.Value("string"),
55
+ "text": datasets.Value("string"),
56
+ "language": datasets.Value("string"),
57
+ "languages": datasets.Sequence(datasets.Value("string")),
58
+ "consistent": datasets.Value("int32"),
59
+ "Q1": datasets.Value("string"),
60
+ "Q2": datasets.Value("string"),
61
+ "Q3": datasets.Value("string"),
62
+ "Q4": datasets.Value("string"),
63
+ "Q5": datasets.Value("string"),
64
+ "Comments": datasets.Value("string"),
65
+ "context_text": datasets.Value("string"),
66
+ "context_text_list": datasets.Sequence(
67
+ datasets.Sequence(datasets.Value("string"))
68
+ ),
69
+ "kaldi_uttid": datasets.Value("string"),
70
+ "all_code_switched_texts": datasets.Sequence(
71
+ datasets.Value("string")
72
+ ),
73
+ "wav_path": datasets.Value("string"),
74
+ }
75
+ ),
76
+ supervised_keys=None,
77
+ homepage=_HOMEPAGE,
78
+ license=_LICENSE,
79
+ citation=_CITATION,
80
+ )
81
+
82
+ def _split_generators(self, dl_manager):
83
+ language = self.config.language
84
+ return [
85
+ datasets.SplitGenerator(
86
+ name=datasets.Split.TRAIN,
87
+ gen_kwargs={
88
+ "filepath": f"{language}.jsonl",
89
+ "language": language,
90
+ },
91
+ )
92
+ ]
93
+
94
+ def _generate_examples(self, filepath, language):
95
+ """Generate examples from JSONL file."""
96
+ with open(filepath, encoding="utf-8") as f:
97
+ for idx, line in enumerate(f):
98
+ if line.strip():
99
+ data = json.loads(line)
100
+ yield idx, data
fra.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76f415663519b4898ddd0540bbf7b5149aae25f181e9262a39e89aae843fbfda
3
+ size 87735168
fra.tar.aa ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e53cb4f57f1245c341b10cf466a4173b653658a183a008a75c63b80045d66e9
3
+ size 32212254720
fra.tar.ab ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f489d2a7999765b32e382f3f651300b28dffed9950e90e62ff0bee01b288c409
3
+ size 28187269120
hin.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2533311b72283f436ec9a0aca687b8f66983bd2c1fdd2574704a3091cba3e526
3
+ size 10256431
hin.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:115e7f32893b73e6568144c1d37e6978e76f76f5322305d4f8a504b7db957bc6
3
+ size 4262277120
jpn.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5fca5676a09f07391aee943996ce6619529bea273b17237f756f1e66c7a5844
3
+ size 602051
jpn.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fc886748e2c4a713f9e59e2d5cc1067d008d5390ef4932b35e11cba2bbc08cb
3
+ size 453734400
rus.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f29381d741c611e54e5ad06d7645f4a9fa837508ea8784006d4f600d70be006a
3
+ size 3947866
rus.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45cd45336294f62592977dec607bf80dc470339ced892f886d312bd5338c3627
3
+ size 2045777920