nanakonoda commited on
Commit
89cfeb4
2 Parent(s): 3c216fb 5c7259b

Merge branch 'main' of https://huggingface.co/datasets/nanakonoda/xnli_cm_sample

Browse files
Files changed (1) hide show
  1. README.md +330 -0
README.md ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language:
5
+ - en
6
+ - de
7
+ - fr
8
+ language_creators:
9
+ - found
10
+ license: []
11
+ multilinguality:
12
+ - multilingual
13
+ pretty_name: XNLI Code-Mixed Corpus (Sampled)
14
+ size_categories:
15
+ - 1M<n<10M
16
+ source_datasets:
17
+ - extended|xnli
18
+ tags:
19
+ - mode classification
20
+ - aligned
21
+ - code-mixed
22
+ task_categories:
23
+ - text-classification
24
+ task_ids: []
25
+ dataset_info:
26
+ - config_name: de_ec
27
+ features:
28
+ - name: text
29
+ dtype: string
30
+ - name: label
31
+ dtype:
32
+ class_label:
33
+ names:
34
+ '0': spoken
35
+ '1': written
36
+ splits:
37
+ - name: train
38
+ num_bytes: 294765
39
+ num_examples: 2490
40
+ - name: test
41
+ num_bytes: 1003843
42
+ num_examples: 14543
43
+
44
+ - config_name: de_ml
45
+ features:
46
+ - name: text
47
+ dtype: string
48
+ - name: label
49
+ dtype:
50
+ class_label:
51
+ names:
52
+ '0': spoken
53
+ '1': written
54
+ splits:
55
+ - name: train
56
+ num_bytes: 294765
57
+ num_examples: 2490
58
+ - name: test
59
+ num_bytes: 954186
60
+ num_examples: 12750
61
+
62
+ - config_name: fr_ec
63
+ features:
64
+ - name: text
65
+ dtype: string
66
+ - name: label
67
+ dtype:
68
+ class_label:
69
+ names:
70
+ '0': spoken
71
+ '1': written
72
+ splits:
73
+ - name: train
74
+ num_bytes: 294765
75
+ num_examples: 2490
76
+ - name: test
77
+ num_bytes: 1350219
78
+ num_examples: 18653
79
+
80
+ - config_name: fr_ml
81
+ features:
82
+ - name: text
83
+ dtype: string
84
+ - name: label
85
+ dtype:
86
+ class_label:
87
+ names:
88
+ '0': spoken
89
+ '1': written
90
+ splits:
91
+ - name: train
92
+ num_bytes: 294765
93
+ num_examples: 2490
94
+ - name: test
95
+ num_bytes: 1388109
96
+ num_examples: 17381
97
+
98
+ download_size: 6634218
99
+ dataset_size: 5601263
100
+ ---
101
+
102
+ # Dataset Card for XNLI Code-Mixed Corpus (Sampled)
103
+
104
+ ## Dataset Description
105
+
106
+ - **Homepage:**
107
+ - **Repository:**
108
+ - **Paper:**
109
+ - **Leaderboard:**
110
+ - **Point of Contact:**
111
+
112
+ ### Dataset Summary
113
+
114
+
115
+ ### Supported Tasks and Leaderboards
116
+
117
+ Binary mode classification (spoken vs written)
118
+
119
+ ### Languages
120
+ - English
121
+ - German
122
+ - French
123
+ - German-English code-mixed by Equivalence Constraint Theory
124
+ - German-English code-mixed by Matrix Language Theory
125
+ - French-English code-mixed by Equivalence Constraint Theory
126
+ - German-English code-mixed by Matrix Language Theory
127
+
128
+ ## Dataset Structure
129
+
130
+ ### Data Instances
131
+
132
+ {
133
+ 'text': "And he said , Mama , I 'm home",
134
+ 'label': 0
135
+ }
136
+
137
+ ### Data Fields
138
+ - text: sentence
139
+ - label: binary label of text (0: spoken 1: written)
140
+
141
+ ### Data Splits
142
+ - de_ec
143
+ - train (English, German, French monolingual): 2490
144
+ - test (German-English code-mixed by Equivalence Constraint Theory): 14543
145
+ - de_ml
146
+ - train (English, German, French monolingual): 2490
147
+ - test (German-English code-mixed by Matrix Language Theory): 12750
148
+ - fr_ec
149
+ - train (English, German, French monolingual): 2490
150
+ - test (French-English code-mixed by Equivalence Constraint Theory): 18653
151
+ - fr_ml
152
+ - train (English, German, French monolingual): 2490
153
+ - test (French-English code-mixed by Matrix Language Theory): 17381
154
+
155
+ ### Other Statistics
156
+
157
+
158
+ #### Average Sentence Length
159
+
160
+ - de_ec
161
+ - train: 19.18714859437751
162
+ - test: 11.24314103004882
163
+
164
+ - de_ml
165
+ - train: 19.18714859437751
166
+ - test: 12.159450980392156
167
+
168
+ - fr_ec
169
+ - train: 19.18714859437751
170
+ - test: 12.26526564091567
171
+
172
+ - fr_ml
173
+ - train: 19.18714859437751
174
+ - test: 13.486968528853346
175
+
176
+
177
+ #### Label Split
178
+ - de_ec
179
+ - train
180
+ - 0: 498
181
+ - 1: 1992
182
+
183
+ - test
184
+ - 0: 2777
185
+ - 1: 11766
186
+
187
+ - de_ml
188
+ - train
189
+ - 0: 498
190
+ - 1: 1992
191
+
192
+ - test
193
+ - 0: 2329
194
+ - 1: 10421
195
+
196
+ - fr_ec
197
+ - train
198
+ - 0: 498
199
+ - 1: 1992
200
+
201
+ - test
202
+ - 0: 3322
203
+ - 1: 15331
204
+
205
+ - fr_ml
206
+ - train
207
+ - 0: 498
208
+ - 1: 1992
209
+
210
+ - test
211
+ - 0: 2788
212
+ - 1: 14593
213
+
214
+ ## Dataset Creation
215
+
216
+ ### Curation Rationale
217
+
218
+ Using the XNLI Parallel Corpus, we generated a code-mixed corpus using CodeMixed Text Generator, and sampled a maximum of 30 sentences per original English sentence.
219
+
220
+ The XNLI Parallel Corpus is available here:
221
+ https://huggingface.co/datasets/nanakonoda/xnli_parallel
222
+ It was created from the XNLI corpus.
223
+ More information is available in the datacard for the XNLI Parallel Corpus.
224
+
225
+ Here is the link and citation for the original CodeMixed Text Generator paper.
226
+ https://github.com/microsoft/CodeMixed-Text-Generator
227
+
228
+ ```
229
+ @inproceedings{rizvi-etal-2021-gcm,
230
+ title = "{GCM}: A Toolkit for Generating Synthetic Code-mixed Text",
231
+ author = "Rizvi, Mohd Sanad Zaki and
232
+ Srinivasan, Anirudh and
233
+ Ganu, Tanuja and
234
+ Choudhury, Monojit and
235
+ Sitaram, Sunayana",
236
+ booktitle = "Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations",
237
+ month = apr,
238
+ year = "2021",
239
+ address = "Online",
240
+ publisher = "Association for Computational Linguistics",
241
+ url = "https://aclanthology.org/2021.eacl-demos.24",
242
+ pages = "205--211",
243
+ abstract = "Code-mixing is common in multilingual communities around the world, and processing it is challenging due to the lack of labeled and unlabeled data. We describe a tool that can automatically generate code-mixed data given parallel data in two languages. We implement two linguistic theories of code-mixing, the Equivalence Constraint theory and the Matrix Language theory to generate all possible code-mixed sentences in the language-pair, followed by sampling of the generated data to generate natural code-mixed sentences. The toolkit provides three modes: a batch mode, an interactive library mode and a web-interface to address the needs of researchers, linguists and language experts. The toolkit can be used to generate unlabeled text data for pre-trained models, as well as visualize linguistic theories of code-mixing. We plan to release the toolkit as open source and extend it by adding more implementations of linguistic theories, visualization techniques and better sampling techniques. We expect that the release of this toolkit will help facilitate more research in code-mixing in diverse language pairs.",
244
+ }
245
+ ```
246
+
247
+ ### Source Data
248
+
249
+ XNLI Code-Mixed Corpus
250
+ https://huggingface.co/datasets/nanakonoda/xnli_cm
251
+
252
+ XNLI Parallel Corpus
253
+ https://huggingface.co/datasets/nanakonoda/xnli_parallel
254
+
255
+ #### Original Source Data
256
+ XNLI Parallel Corpus was created using the XNLI Corpus.
257
+ https://github.com/facebookresearch/XNLI
258
+
259
+ Here is the citation for the original XNLI paper.
260
+
261
+ ```
262
+ @InProceedings{conneau2018xnli,
263
+ author = "Conneau, Alexis
264
+ and Rinott, Ruty
265
+ and Lample, Guillaume
266
+ and Williams, Adina
267
+ and Bowman, Samuel R.
268
+ and Schwenk, Holger
269
+ and Stoyanov, Veselin",
270
+ title = "XNLI: Evaluating Cross-lingual Sentence Representations",
271
+ booktitle = "Proceedings of the 2018 Conference on Empirical Methods
272
+ in Natural Language Processing",
273
+ year = "2018",
274
+ publisher = "Association for Computational Linguistics",
275
+ location = "Brussels, Belgium",
276
+ }
277
+ ```
278
+
279
+ #### Initial Data Collection and Normalization
280
+
281
+ We removed all punctuation from the XNLI Parallel Corpus except apostrophes.
282
+
283
+ #### Who are the source language producers?
284
+
285
+ N/A
286
+
287
+ ### Annotations
288
+
289
+ #### Annotation process
290
+
291
+ N/A
292
+
293
+ #### Who are the annotators?
294
+
295
+ N/A
296
+
297
+ ### Personal and Sensitive Information
298
+
299
+ N/A
300
+
301
+ ## Considerations for Using the Data
302
+
303
+ ### Social Impact of Dataset
304
+
305
+ N/A
306
+
307
+ ### Discussion of Biases
308
+
309
+ N/A
310
+
311
+ ### Other Known Limitations
312
+
313
+ N/A
314
+
315
+ ## Additional Information
316
+
317
+ ### Dataset Curators
318
+
319
+ N/A
320
+
321
+ ### Licensing Information
322
+
323
+ N/A
324
+
325
+ ### Citation Information
326
+
327
+
328
+ ### Contributions
329
+
330
+ N/A