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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
14 |
+
size_categories:
|
15 |
+
- 1K<n<10K
|
16 |
+
source_datasets:
|
17 |
+
- extended|xnli
|
18 |
+
tags:
|
19 |
+
- mode classification
|
20 |
+
- code-mixed
|
21 |
+
- aligned
|
22 |
+
task_categories:
|
23 |
+
- text-classification
|
24 |
+
task_ids: []
|
25 |
+
dataset_info:
|
26 |
+
features:
|
27 |
+
- name: text
|
28 |
+
dtype: string
|
29 |
+
- name: label
|
30 |
+
dtype: int64
|
31 |
+
class_label:
|
32 |
+
names:
|
33 |
+
'0': spoken
|
34 |
+
'1': written
|
35 |
+
|
36 |
+
config_name: de_ec
|
37 |
+
splits:
|
38 |
+
- name: train
|
39 |
+
num_bytes: 576
|
40 |
+
num_examples: 2490
|
41 |
+
- name: test
|
42 |
+
num_bytes: 361472
|
43 |
+
num_examples: 1610548
|
44 |
+
|
45 |
+
config_name: de_ml
|
46 |
+
splits:
|
47 |
+
- name: train
|
48 |
+
num_bytes: 576
|
49 |
+
num_examples: 2490
|
50 |
+
- name: test
|
51 |
+
num_bytes: 87040
|
52 |
+
num_examples: 332326
|
53 |
+
|
54 |
+
config_name: fr_ec
|
55 |
+
splits:
|
56 |
+
- name: train
|
57 |
+
num_bytes: 576
|
58 |
+
num_examples: 2490
|
59 |
+
- name: test
|
60 |
+
num_bytes: 564416
|
61 |
+
num_examples: 2562631
|
62 |
+
|
63 |
+
config_name: fr_ml
|
64 |
+
splits:
|
65 |
+
- name: train
|
66 |
+
num_bytes: 576
|
67 |
+
num_examples: 2490
|
68 |
+
- name: test
|
69 |
+
num_bytes: 361472
|
70 |
+
num_examples:
|
71 |
+
|
72 |
+
download_size: 1376728
|
73 |
+
dataset_size: 1376704
|
74 |
+
---
|
75 |
+
|
76 |
+
# Dataset Card for XNLI Code-Mixed Corpus
|
77 |
+
|
78 |
+
## Dataset Description
|
79 |
+
|
80 |
+
- **Homepage:**
|
81 |
+
- **Repository:**
|
82 |
+
- **Paper:**
|
83 |
+
- **Leaderboard:**
|
84 |
+
- **Point of Contact:**
|
85 |
+
|
86 |
+
### Dataset Summary
|
87 |
+
|
88 |
+
|
89 |
+
### Supported Tasks and Leaderboards
|
90 |
+
|
91 |
+
Binary mode classification (spoken vs written)
|
92 |
+
|
93 |
+
### Languages
|
94 |
+
- English
|
95 |
+
- German
|
96 |
+
- French
|
97 |
+
- German-English code-mixed by Equivalence Constraint Theory
|
98 |
+
- German-English code-mixed by Matrix Language Theory
|
99 |
+
- French-English code-mixed by Equivalence Constraint Theory
|
100 |
+
- German-English code-mixed by Matrix Language Theory
|
101 |
+
|
102 |
+
## Dataset Structure
|
103 |
+
|
104 |
+
### Data Instances
|
105 |
+
|
106 |
+
{
|
107 |
+
'text': "And he said , Mama , I 'm home",
|
108 |
+
'label': 0
|
109 |
+
}
|
110 |
+
|
111 |
+
### Data Fields
|
112 |
+
- text: sentence
|
113 |
+
- label: binary label of text (0: spoken 1: written)
|
114 |
+
|
115 |
+
### Data Splits
|
116 |
+
- de-ec
|
117 |
+
- train (English, German, French monolingual):
|
118 |
+
- test (German-English code-mixed by Equivalence Constraint Theory):
|
119 |
+
- de-ml:
|
120 |
+
- train (English, German, French monolingual):
|
121 |
+
- test (German-English code-mixed by Matrix Language Theory):
|
122 |
+
- fr-ec
|
123 |
+
- train (English, German, French monolingual):
|
124 |
+
- test (French-English code-mixed by Equivalence Constraint Theory):
|
125 |
+
- fr-ml:
|
126 |
+
- train (English, German, French monolingual):
|
127 |
+
- test (French-English code-mixed by Matrix Language Theory):
|
128 |
+
|
129 |
+
### Other Statistics
|
130 |
+
|
131 |
+
|
132 |
+
#### Average Sentence Length
|
133 |
+
|
134 |
+
- German
|
135 |
+
- train:
|
136 |
+
- test:
|
137 |
+
|
138 |
+
- French
|
139 |
+
- train:
|
140 |
+
- test:
|
141 |
+
|
142 |
+
#### Label Split
|
143 |
+
- train:
|
144 |
+
- 0:
|
145 |
+
- 1:
|
146 |
+
- test:
|
147 |
+
- 0:
|
148 |
+
- 1:
|
149 |
+
|
150 |
+
## Dataset Creation
|
151 |
+
|
152 |
+
### Curation Rationale
|
153 |
+
|
154 |
+
Using the XNLI Parallel Corpus, we generated a code-mixed corpus using CodeMixed Text Generator.
|
155 |
+
|
156 |
+
The XNLI Parallel Corpus is available here:
|
157 |
+
https://huggingface.co/datasets/nanakonoda/xnli_parallel
|
158 |
+
It was created from the XNLI corpus.
|
159 |
+
More information is available in the datacard for the XNLI Parallel Corpus.
|
160 |
+
|
161 |
+
Here is the link and citation for the original CodeMixed Text Generator paper.
|
162 |
+
https://github.com/microsoft/CodeMixed-Text-Generator
|
163 |
+
|
164 |
+
```
|
165 |
+
@inproceedings{rizvi-etal-2021-gcm,
|
166 |
+
title = "{GCM}: A Toolkit for Generating Synthetic Code-mixed Text",
|
167 |
+
author = "Rizvi, Mohd Sanad Zaki and
|
168 |
+
Srinivasan, Anirudh and
|
169 |
+
Ganu, Tanuja and
|
170 |
+
Choudhury, Monojit and
|
171 |
+
Sitaram, Sunayana",
|
172 |
+
booktitle = "Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations",
|
173 |
+
month = apr,
|
174 |
+
year = "2021",
|
175 |
+
address = "Online",
|
176 |
+
publisher = "Association for Computational Linguistics",
|
177 |
+
url = "https://aclanthology.org/2021.eacl-demos.24",
|
178 |
+
pages = "205--211",
|
179 |
+
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.",
|
180 |
+
}
|
181 |
+
```
|
182 |
+
|
183 |
+
### Source Data
|
184 |
+
|
185 |
+
XNLI Parallel Corpus
|
186 |
+
https://huggingface.co/datasets/nanakonoda/xnli_parallel
|
187 |
+
|
188 |
+
#### Original Source Data
|
189 |
+
XNLI Parallel Corpus was created using the XNLI Corpus.
|
190 |
+
https://github.com/facebookresearch/XNLI
|
191 |
+
|
192 |
+
Here is the citation for the original XNLI paper.
|
193 |
+
|
194 |
+
```
|
195 |
+
@InProceedings{conneau2018xnli,
|
196 |
+
author = "Conneau, Alexis
|
197 |
+
and Rinott, Ruty
|
198 |
+
and Lample, Guillaume
|
199 |
+
and Williams, Adina
|
200 |
+
and Bowman, Samuel R.
|
201 |
+
and Schwenk, Holger
|
202 |
+
and Stoyanov, Veselin",
|
203 |
+
title = "XNLI: Evaluating Cross-lingual Sentence Representations",
|
204 |
+
booktitle = "Proceedings of the 2018 Conference on Empirical Methods
|
205 |
+
in Natural Language Processing",
|
206 |
+
year = "2018",
|
207 |
+
publisher = "Association for Computational Linguistics",
|
208 |
+
location = "Brussels, Belgium",
|
209 |
+
}
|
210 |
+
```
|
211 |
+
|
212 |
+
#### Initial Data Collection and Normalization
|
213 |
+
|
214 |
+
We removed all punctuation from the XNLI Parallel Corpus except apostrophes.
|
215 |
+
|
216 |
+
#### Who are the source language producers?
|
217 |
+
|
218 |
+
N/A
|
219 |
+
|
220 |
+
### Annotations
|
221 |
+
|
222 |
+
#### Annotation process
|
223 |
+
|
224 |
+
N/A
|
225 |
+
|
226 |
+
#### Who are the annotators?
|
227 |
+
|
228 |
+
N/A
|
229 |
+
|
230 |
+
### Personal and Sensitive Information
|
231 |
+
|
232 |
+
N/A
|
233 |
+
|
234 |
+
## Considerations for Using the Data
|
235 |
+
|
236 |
+
### Social Impact of Dataset
|
237 |
+
|
238 |
+
N/A
|
239 |
+
|
240 |
+
### Discussion of Biases
|
241 |
+
|
242 |
+
N/A
|
243 |
+
|
244 |
+
### Other Known Limitations
|
245 |
+
|
246 |
+
N/A
|
247 |
+
|
248 |
+
## Additional Information
|
249 |
+
|
250 |
+
### Dataset Curators
|
251 |
+
|
252 |
+
N/A
|
253 |
+
|
254 |
+
### Licensing Information
|
255 |
+
|
256 |
+
N/A
|
257 |
+
|
258 |
+
### Citation Information
|
259 |
+
|
260 |
+
|
261 |
+
### Contributions
|
262 |
+
|
263 |
+
N/A
|