albertvillanova HF staff commited on
Commit
4cd8187
1 Parent(s): 8a04d94

Convert dataset to Parquet (#5)

Browse files

- Convert dataset to Parquet (a334ccd10c81f43219baca45317318794cf400aa)
- Add de data files (d046830f016742f37526ceacb287241d583008a9)
- Add es data files (c048ed55edd45940c529b4e3557ed9af1b312824)
- Add fr data files (24f9c2c15a6d1990dcdcf0728a14b4a5fd3d3b4a)
- Add ja data files (019650d8ae10267644dbe48ea9041e389f17e875)
- Add ko data files (a7dcf2b89eefd695b111d6c840d9a515ae4f9a58)
- Add zh data files (9b32063c3ebe39d52b67dae9a1c17a6eac31d821)
- Delete loading script (bd262abfe7dd14d902e653e2e3b612ca05789d52)
- Delete legacy dataset_infos.json (cf8c8dcaf95bd581d28933bd7dfe708a97c22d16)

README.md CHANGED
@@ -33,7 +33,7 @@ pretty_name: 'PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identif
33
  tags:
34
  - paraphrase-identification
35
  dataset_info:
36
- - config_name: en
37
  features:
38
  - name: id
39
  dtype: int32
@@ -49,17 +49,17 @@ dataset_info:
49
  '1': '1'
50
  splits:
51
  - name: train
52
- num_bytes: 12215953
53
  num_examples: 49401
54
  - name: test
55
- num_bytes: 494734
56
  num_examples: 2000
57
  - name: validation
58
- num_bytes: 492287
59
  num_examples: 2000
60
- download_size: 30282057
61
- dataset_size: 13202974
62
- - config_name: de
63
  features:
64
  - name: id
65
  dtype: int32
@@ -75,16 +75,16 @@ dataset_info:
75
  '1': '1'
76
  splits:
77
  - name: train
78
- num_bytes: 12801824
79
  num_examples: 49401
80
  - name: test
81
- num_bytes: 524214
82
  num_examples: 2000
83
  - name: validation
84
- num_bytes: 514009
85
  num_examples: 2000
86
- download_size: 30282057
87
- dataset_size: 13840047
88
  - config_name: es
89
  features:
90
  - name: id
@@ -101,16 +101,16 @@ dataset_info:
101
  '1': '1'
102
  splits:
103
  - name: train
104
- num_bytes: 12808486
105
  num_examples: 49401
106
  - name: test
107
- num_bytes: 519111
108
  num_examples: 2000
109
  - name: validation
110
- num_bytes: 513888
111
  num_examples: 2000
112
- download_size: 30282057
113
- dataset_size: 13841485
114
  - config_name: fr
115
  features:
116
  - name: id
@@ -127,16 +127,16 @@ dataset_info:
127
  '1': '1'
128
  splits:
129
  - name: train
130
- num_bytes: 13295597
131
  num_examples: 49401
132
  - name: test
133
- num_bytes: 535101
134
  num_examples: 2000
135
  - name: validation
136
- num_bytes: 533031
137
  num_examples: 2000
138
- download_size: 30282057
139
- dataset_size: 14363729
140
  - config_name: ja
141
  features:
142
  - name: id
@@ -153,16 +153,16 @@ dataset_info:
153
  '1': '1'
154
  splits:
155
  - name: train
156
- num_bytes: 15041632
157
  num_examples: 49401
158
  - name: test
159
- num_bytes: 668636
160
  num_examples: 2000
161
  - name: validation
162
- num_bytes: 661778
163
  num_examples: 2000
164
- download_size: 30282057
165
- dataset_size: 16372046
166
  - config_name: ko
167
  features:
168
  - name: id
@@ -179,16 +179,16 @@ dataset_info:
179
  '1': '1'
180
  splits:
181
  - name: train
182
- num_bytes: 13934221
183
  num_examples: 49401
184
  - name: test
185
- num_bytes: 562300
186
  num_examples: 2000
187
  - name: validation
188
- num_bytes: 554875
189
  num_examples: 2000
190
- download_size: 30282057
191
- dataset_size: 15051396
192
  - config_name: zh
193
  features:
194
  - name: id
@@ -205,16 +205,73 @@ dataset_info:
205
  '1': '1'
206
  splits:
207
  - name: train
208
- num_bytes: 10815499
209
  num_examples: 49401
210
  - name: test
211
- num_bytes: 474644
212
  num_examples: 2000
213
  - name: validation
214
- num_bytes: 473118
215
  num_examples: 2000
216
- download_size: 30282057
217
- dataset_size: 11763261
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  ---
219
 
220
  # Dataset Card for PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification
33
  tags:
34
  - paraphrase-identification
35
  dataset_info:
36
+ - config_name: de
37
  features:
38
  - name: id
39
  dtype: int32
49
  '1': '1'
50
  splits:
51
  - name: train
52
+ num_bytes: 12801784
53
  num_examples: 49401
54
  - name: test
55
+ num_bytes: 524206
56
  num_examples: 2000
57
  - name: validation
58
+ num_bytes: 514001
59
  num_examples: 2000
60
+ download_size: 9601920
61
+ dataset_size: 13839991
62
+ - config_name: en
63
  features:
64
  - name: id
65
  dtype: int32
75
  '1': '1'
76
  splits:
77
  - name: train
78
+ num_bytes: 12215913
79
  num_examples: 49401
80
  - name: test
81
+ num_bytes: 494726
82
  num_examples: 2000
83
  - name: validation
84
+ num_bytes: 492279
85
  num_examples: 2000
86
+ download_size: 9045005
87
+ dataset_size: 13202918
88
  - config_name: es
89
  features:
90
  - name: id
101
  '1': '1'
102
  splits:
103
  - name: train
104
+ num_bytes: 12808446
105
  num_examples: 49401
106
  - name: test
107
+ num_bytes: 519103
108
  num_examples: 2000
109
  - name: validation
110
+ num_bytes: 513880
111
  num_examples: 2000
112
+ download_size: 9538815
113
+ dataset_size: 13841429
114
  - config_name: fr
115
  features:
116
  - name: id
127
  '1': '1'
128
  splits:
129
  - name: train
130
+ num_bytes: 13295557
131
  num_examples: 49401
132
  - name: test
133
+ num_bytes: 535093
134
  num_examples: 2000
135
  - name: validation
136
+ num_bytes: 533023
137
  num_examples: 2000
138
+ download_size: 9785410
139
+ dataset_size: 14363673
140
  - config_name: ja
141
  features:
142
  - name: id
153
  '1': '1'
154
  splits:
155
  - name: train
156
+ num_bytes: 15041592
157
  num_examples: 49401
158
  - name: test
159
+ num_bytes: 668628
160
  num_examples: 2000
161
  - name: validation
162
+ num_bytes: 661770
163
  num_examples: 2000
164
+ download_size: 10435711
165
+ dataset_size: 16371990
166
  - config_name: ko
167
  features:
168
  - name: id
179
  '1': '1'
180
  splits:
181
  - name: train
182
+ num_bytes: 13934181
183
  num_examples: 49401
184
  - name: test
185
+ num_bytes: 562292
186
  num_examples: 2000
187
  - name: validation
188
+ num_bytes: 554867
189
  num_examples: 2000
190
+ download_size: 10263972
191
+ dataset_size: 15051340
192
  - config_name: zh
193
  features:
194
  - name: id
205
  '1': '1'
206
  splits:
207
  - name: train
208
+ num_bytes: 10815459
209
  num_examples: 49401
210
  - name: test
211
+ num_bytes: 474636
212
  num_examples: 2000
213
  - name: validation
214
+ num_bytes: 473110
215
  num_examples: 2000
216
+ download_size: 9178953
217
+ dataset_size: 11763205
218
+ configs:
219
+ - config_name: de
220
+ data_files:
221
+ - split: train
222
+ path: de/train-*
223
+ - split: test
224
+ path: de/test-*
225
+ - split: validation
226
+ path: de/validation-*
227
+ - config_name: en
228
+ data_files:
229
+ - split: train
230
+ path: en/train-*
231
+ - split: test
232
+ path: en/test-*
233
+ - split: validation
234
+ path: en/validation-*
235
+ - config_name: es
236
+ data_files:
237
+ - split: train
238
+ path: es/train-*
239
+ - split: test
240
+ path: es/test-*
241
+ - split: validation
242
+ path: es/validation-*
243
+ - config_name: fr
244
+ data_files:
245
+ - split: train
246
+ path: fr/train-*
247
+ - split: test
248
+ path: fr/test-*
249
+ - split: validation
250
+ path: fr/validation-*
251
+ - config_name: ja
252
+ data_files:
253
+ - split: train
254
+ path: ja/train-*
255
+ - split: test
256
+ path: ja/test-*
257
+ - split: validation
258
+ path: ja/validation-*
259
+ - config_name: ko
260
+ data_files:
261
+ - split: train
262
+ path: ko/train-*
263
+ - split: test
264
+ path: ko/test-*
265
+ - split: validation
266
+ path: ko/validation-*
267
+ - config_name: zh
268
+ data_files:
269
+ - split: train
270
+ path: zh/train-*
271
+ - split: test
272
+ path: zh/test-*
273
+ - split: validation
274
+ path: zh/validation-*
275
  ---
276
 
277
  # Dataset Card for PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"en": {"description": "PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.\n\nThis dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine\ntranslated training pairs in six typologically distinct languages: French, Spanish, German,\nChinese, Japanese, and Korean. English language is available by default. All translated\npairs are sourced from examples in PAWS-Wiki.\n\nFor further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset\nfor Paraphrase Identification (https://arxiv.org/abs/1908.11828)\n\nNOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.\n", "citation": "@InProceedings{pawsx2019emnlp,\n title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},\n author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},\n booktitle = {Proc. of EMNLP},\n year = {2019}\n}\n", "homepage": "https://github.com/google-research-datasets/paws/tree/master/pawsx", "license": "The dataset may be freely used for any purpose, although acknowledgement of Google LLC (\"Google\") as the data source would be appreciated. The dataset is provided \"AS IS\" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "pawsx", "config_name": "en", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 12215953, "num_examples": 49401, "dataset_name": "pawsx"}, "test": {"name": "test", "num_bytes": 494734, "num_examples": 2000, "dataset_name": "pawsx"}, "validation": {"name": "validation", "num_bytes": 492287, "num_examples": 2000, "dataset_name": "pawsx"}}, "download_checksums": {"https://storage.googleapis.com/paws/pawsx/x-final.tar.gz": {"num_bytes": 30282057, "checksum": "4146db499101d66e68ae4c8ed3cf9dadecd625f44b7d8cf3d4a0fe93afc4fd9f"}}, "download_size": 30282057, "post_processing_size": null, "dataset_size": 13202974, "size_in_bytes": 43485031}, "de": {"description": "PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.\n\nThis dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine\ntranslated training pairs in six typologically distinct languages: French, Spanish, German,\nChinese, Japanese, and Korean. English language is available by default. All translated\npairs are sourced from examples in PAWS-Wiki.\n\nFor further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset\nfor Paraphrase Identification (https://arxiv.org/abs/1908.11828)\n\nNOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.\n", "citation": "@InProceedings{pawsx2019emnlp,\n title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},\n author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},\n booktitle = {Proc. of EMNLP},\n year = {2019}\n}\n", "homepage": "https://github.com/google-research-datasets/paws/tree/master/pawsx", "license": "The dataset may be freely used for any purpose, although acknowledgement of Google LLC (\"Google\") as the data source would be appreciated. The dataset is provided \"AS IS\" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "pawsx", "config_name": "de", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 12801824, "num_examples": 49401, "dataset_name": "pawsx"}, "test": {"name": "test", "num_bytes": 524214, "num_examples": 2000, "dataset_name": "pawsx"}, "validation": {"name": "validation", "num_bytes": 514009, "num_examples": 2000, "dataset_name": "pawsx"}}, "download_checksums": {"https://storage.googleapis.com/paws/pawsx/x-final.tar.gz": {"num_bytes": 30282057, "checksum": "4146db499101d66e68ae4c8ed3cf9dadecd625f44b7d8cf3d4a0fe93afc4fd9f"}}, "download_size": 30282057, "post_processing_size": null, "dataset_size": 13840047, "size_in_bytes": 44122104}, "es": {"description": "PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.\n\nThis dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine\ntranslated training pairs in six typologically distinct languages: French, Spanish, German,\nChinese, Japanese, and Korean. English language is available by default. All translated\npairs are sourced from examples in PAWS-Wiki.\n\nFor further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset\nfor Paraphrase Identification (https://arxiv.org/abs/1908.11828)\n\nNOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.\n", "citation": "@InProceedings{pawsx2019emnlp,\n title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},\n author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},\n booktitle = {Proc. of EMNLP},\n year = {2019}\n}\n", "homepage": "https://github.com/google-research-datasets/paws/tree/master/pawsx", "license": "The dataset may be freely used for any purpose, although acknowledgement of Google LLC (\"Google\") as the data source would be appreciated. The dataset is provided \"AS IS\" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "pawsx", "config_name": "es", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 12808486, "num_examples": 49401, "dataset_name": "pawsx"}, "test": {"name": "test", "num_bytes": 519111, "num_examples": 2000, "dataset_name": "pawsx"}, "validation": {"name": "validation", "num_bytes": 513888, "num_examples": 2000, "dataset_name": "pawsx"}}, "download_checksums": {"https://storage.googleapis.com/paws/pawsx/x-final.tar.gz": {"num_bytes": 30282057, "checksum": "4146db499101d66e68ae4c8ed3cf9dadecd625f44b7d8cf3d4a0fe93afc4fd9f"}}, "download_size": 30282057, "post_processing_size": null, "dataset_size": 13841485, "size_in_bytes": 44123542}, "fr": {"description": "PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.\n\nThis dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine\ntranslated training pairs in six typologically distinct languages: French, Spanish, German,\nChinese, Japanese, and Korean. English language is available by default. All translated\npairs are sourced from examples in PAWS-Wiki.\n\nFor further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset\nfor Paraphrase Identification (https://arxiv.org/abs/1908.11828)\n\nNOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.\n", "citation": "@InProceedings{pawsx2019emnlp,\n title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},\n author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},\n booktitle = {Proc. of EMNLP},\n year = {2019}\n}\n", "homepage": "https://github.com/google-research-datasets/paws/tree/master/pawsx", "license": "The dataset may be freely used for any purpose, although acknowledgement of Google LLC (\"Google\") as the data source would be appreciated. The dataset is provided \"AS IS\" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "pawsx", "config_name": "fr", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 13295597, "num_examples": 49401, "dataset_name": "pawsx"}, "test": {"name": "test", "num_bytes": 535101, "num_examples": 2000, "dataset_name": "pawsx"}, "validation": {"name": "validation", "num_bytes": 533031, "num_examples": 2000, "dataset_name": "pawsx"}}, "download_checksums": {"https://storage.googleapis.com/paws/pawsx/x-final.tar.gz": {"num_bytes": 30282057, "checksum": "4146db499101d66e68ae4c8ed3cf9dadecd625f44b7d8cf3d4a0fe93afc4fd9f"}}, "download_size": 30282057, "post_processing_size": null, "dataset_size": 14363729, "size_in_bytes": 44645786}, "ja": {"description": "PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.\n\nThis dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine\ntranslated training pairs in six typologically distinct languages: French, Spanish, German,\nChinese, Japanese, and Korean. English language is available by default. All translated\npairs are sourced from examples in PAWS-Wiki.\n\nFor further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset\nfor Paraphrase Identification (https://arxiv.org/abs/1908.11828)\n\nNOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.\n", "citation": "@InProceedings{pawsx2019emnlp,\n title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},\n author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},\n booktitle = {Proc. of EMNLP},\n year = {2019}\n}\n", "homepage": "https://github.com/google-research-datasets/paws/tree/master/pawsx", "license": "The dataset may be freely used for any purpose, although acknowledgement of Google LLC (\"Google\") as the data source would be appreciated. The dataset is provided \"AS IS\" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "pawsx", "config_name": "ja", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 15041632, "num_examples": 49401, "dataset_name": "pawsx"}, "test": {"name": "test", "num_bytes": 668636, "num_examples": 2000, "dataset_name": "pawsx"}, "validation": {"name": "validation", "num_bytes": 661778, "num_examples": 2000, "dataset_name": "pawsx"}}, "download_checksums": {"https://storage.googleapis.com/paws/pawsx/x-final.tar.gz": {"num_bytes": 30282057, "checksum": "4146db499101d66e68ae4c8ed3cf9dadecd625f44b7d8cf3d4a0fe93afc4fd9f"}}, "download_size": 30282057, "post_processing_size": null, "dataset_size": 16372046, "size_in_bytes": 46654103}, "ko": {"description": "PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.\n\nThis dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine\ntranslated training pairs in six typologically distinct languages: French, Spanish, German,\nChinese, Japanese, and Korean. English language is available by default. All translated\npairs are sourced from examples in PAWS-Wiki.\n\nFor further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset\nfor Paraphrase Identification (https://arxiv.org/abs/1908.11828)\n\nNOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.\n", "citation": "@InProceedings{pawsx2019emnlp,\n title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},\n author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},\n booktitle = {Proc. of EMNLP},\n year = {2019}\n}\n", "homepage": "https://github.com/google-research-datasets/paws/tree/master/pawsx", "license": "The dataset may be freely used for any purpose, although acknowledgement of Google LLC (\"Google\") as the data source would be appreciated. The dataset is provided \"AS IS\" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "pawsx", "config_name": "ko", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 13934221, "num_examples": 49401, "dataset_name": "pawsx"}, "test": {"name": "test", "num_bytes": 562300, "num_examples": 2000, "dataset_name": "pawsx"}, "validation": {"name": "validation", "num_bytes": 554875, "num_examples": 2000, "dataset_name": "pawsx"}}, "download_checksums": {"https://storage.googleapis.com/paws/pawsx/x-final.tar.gz": {"num_bytes": 30282057, "checksum": "4146db499101d66e68ae4c8ed3cf9dadecd625f44b7d8cf3d4a0fe93afc4fd9f"}}, "download_size": 30282057, "post_processing_size": null, "dataset_size": 15051396, "size_in_bytes": 45333453}, "zh": {"description": "PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.\n\nThis dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine\ntranslated training pairs in six typologically distinct languages: French, Spanish, German,\nChinese, Japanese, and Korean. English language is available by default. All translated\npairs are sourced from examples in PAWS-Wiki.\n\nFor further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset\nfor Paraphrase Identification (https://arxiv.org/abs/1908.11828)\n\nNOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.\n", "citation": "@InProceedings{pawsx2019emnlp,\n title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},\n author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},\n booktitle = {Proc. of EMNLP},\n year = {2019}\n}\n", "homepage": "https://github.com/google-research-datasets/paws/tree/master/pawsx", "license": "The dataset may be freely used for any purpose, although acknowledgement of Google LLC (\"Google\") as the data source would be appreciated. The dataset is provided \"AS IS\" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "pawsx", "config_name": "zh", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10815499, "num_examples": 49401, "dataset_name": "pawsx"}, "test": {"name": "test", "num_bytes": 474644, "num_examples": 2000, "dataset_name": "pawsx"}, "validation": {"name": "validation", "num_bytes": 473118, "num_examples": 2000, "dataset_name": "pawsx"}}, "download_checksums": {"https://storage.googleapis.com/paws/pawsx/x-final.tar.gz": {"num_bytes": 30282057, "checksum": "4146db499101d66e68ae4c8ed3cf9dadecd625f44b7d8cf3d4a0fe93afc4fd9f"}}, "download_size": 30282057, "post_processing_size": null, "dataset_size": 11763261, "size_in_bytes": 42045318}}
 
de/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f50249f813edbde93aa86668775779671457aee6b0fa334d1acd5d8d9f83fe6
3
+ size 351726
de/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2fc8cdcbd926761a222c30f4f046a7cbae2ea1b14c2dbaf94f3d8a94aef1e45
3
+ size 8905655
de/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4678b3c952b038f560035623523f1e92c353f1f9e66a2b79b589ee2c20bb512f
3
+ size 344539
en/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdb1e43f1068cf0cec955327cfdedc2d3065f15d3cd673c9d0002e6e87cc7915
3
+ size 309849
en/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0de6e8a4ba4bd88ee79c883349d112ec1ca85cda78726b59c215fab5849e49f3
3
+ size 8428142
en/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e91c4c89a3d74deaf82bf2e87e626cf8d69d85f3c8e736b1ab3b6c3503ff26da
3
+ size 307014
es/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ba872e113a79c783616e59d3d28ec0e922b6db745d797e5eb95010a32928bee
3
+ size 345485
es/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9501c5d9ebac5b7ad95970d1cb1a98798a1b16b6ffa89e48328c20f9c2b04df3
3
+ size 8851831
es/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bdc3b79b00f4404bc00336648b656a3c3b35b60808959862f608e0296ef0488
3
+ size 341499
fr/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98844ef252bf38c42cbbf144ec30984c9e54c4c204d0e777c083831130593f4b
3
+ size 351597
fr/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a487d5ec5412c55247f8b3bf26924cfcbcdb76bc7b04167e4c3428ed632b7cb
3
+ size 9086989
fr/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e64e5e373b4a0728941bab3acb083aaf41fe1f62e2654e7f7ea147dfd63b56f7
3
+ size 346824
ja/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a75eb349a59de7c0db1c408c4db29f8d9fbbc75cbd57d637f8a2454ae89abfd8
3
+ size 409819
ja/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27bccd84b466063f337c1e6effe027f456c0e5e4a7726a3824413f732b364ae9
3
+ size 9625002
ja/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a07868e9a6b4e3d1a87e76ff151624bd9b7e8954f22d2913b02259f4a15e910b
3
+ size 400890
ko/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b27692abb0b1be9f9a3a22f80cee749d9dd35870a6f2874c594777aac3aa6988
3
+ size 372705
ko/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a98fb8091c513c684e1f875b1f73002f1514572f2280ab09f8653f2541bdbd06
3
+ size 9528994
ko/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6da70ff9cf51075a688fb379ac1b091ee362700f74346473dd1a0c237b8a6f12
3
+ size 362273
paws-x.py DELETED
@@ -1,171 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """PAWS-X, a multilingual version of PAWS for six languages."""
16
-
17
-
18
- import csv
19
-
20
- import datasets
21
-
22
-
23
- _CITATION = """\
24
- @InProceedings{pawsx2019emnlp,
25
- title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},
26
- author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},
27
- booktitle = {Proc. of EMNLP},
28
- year = {2019}
29
- }
30
- """
31
-
32
- _DESCRIPTION = """\
33
- PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.
34
-
35
- This dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine
36
- translated training pairs in six typologically distinct languages: French, Spanish, German,
37
- Chinese, Japanese, and Korean. English language is available by default. All translated
38
- pairs are sourced from examples in PAWS-Wiki.
39
-
40
- For further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset
41
- for Paraphrase Identification (https://arxiv.org/abs/1908.11828)
42
-
43
- NOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.
44
- """
45
-
46
- _HOMEPAGE = "https://github.com/google-research-datasets/paws/tree/master/pawsx"
47
-
48
- # TODO: Add the licence for the dataset here if you can find it
49
- _LICENSE = 'The dataset may be freely used for any purpose, although acknowledgement of Google LLC ("Google") as the data source would be appreciated. The dataset is provided "AS IS" without any warranty, express or implied. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.'
50
-
51
- # TODO: Add link to the official dataset URLs here
52
- # The HuggingFace dataset library don't host the datasets but only point to the original files
53
- # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
54
- _DATA_OPTIONS = [
55
- "en",
56
- "de",
57
- "es",
58
- "fr",
59
- "ja",
60
- "ko",
61
- "zh",
62
- ]
63
-
64
- _DATA_URL = "https://storage.googleapis.com/paws/pawsx/x-final.tar.gz"
65
-
66
-
67
- class PAWSXConfig(datasets.BuilderConfig):
68
- """BuilderConfig for PAWSX."""
69
-
70
- def __init__(self, **kwargs):
71
- """Constructs a PAWSXConfig.
72
- Args:
73
- **kwargs: keyword arguments forwarded to super.
74
- """
75
- super(PAWSXConfig, self).__init__(version=datasets.Version("1.1.0", ""), **kwargs),
76
-
77
-
78
- class PAWSX(datasets.GeneratorBasedBuilder):
79
- """PAWS-X, a multilingual version of PAWS for six languages."""
80
-
81
- VERSION = datasets.Version("1.1.0")
82
-
83
- BUILDER_CONFIGS = [
84
- PAWSXConfig(
85
- name=config_name,
86
- description=(f"This config contains samples in {config_name}."),
87
- )
88
- for config_name in _DATA_OPTIONS
89
- ]
90
-
91
- def _info(self):
92
- features = datasets.Features(
93
- {
94
- "id": datasets.Value("int32"),
95
- "sentence1": datasets.Value("string"),
96
- "sentence2": datasets.Value("string"),
97
- "label": datasets.features.ClassLabel(names=["0", "1"]),
98
- }
99
- )
100
- return datasets.DatasetInfo(
101
- # This is the description that will appear on the datasets page.
102
- description=_DESCRIPTION,
103
- # This defines the different columns of the dataset and their types
104
- features=features, # Here we define them above because they are different between the two configurations
105
- # If there's a common (input, target) tuple from the features,
106
- # specify them here. They'll be used if as_supervised=True in
107
- # builder.as_dataset.
108
- supervised_keys=None,
109
- # Homepage of the dataset for documentation
110
- homepage=_HOMEPAGE,
111
- # License for the dataset if available
112
- license=_LICENSE,
113
- # Citation for the dataset
114
- citation=_CITATION,
115
- )
116
-
117
- def _split_generators(self, dl_manager):
118
- """Returns SplitGenerators."""
119
-
120
- archive = dl_manager.download(_DATA_URL)
121
-
122
- _TEST_FILE_NAME = f"x-final/{self.config.name}/test_2k.tsv"
123
- _VAL_FILE_NAME = f"x-final/{self.config.name}/dev_2k.tsv"
124
-
125
- if self.config.name == "en":
126
- _TRAIN_FILE_NAME = f"x-final/{self.config.name}/train.tsv"
127
- else:
128
- _TRAIN_FILE_NAME = f"x-final/{self.config.name}/translated_train.tsv"
129
-
130
- return [
131
- datasets.SplitGenerator(
132
- name=datasets.Split.TRAIN,
133
- # These kwargs will be passed to _generate_examples
134
- gen_kwargs={
135
- "filepath": _TRAIN_FILE_NAME,
136
- "files": dl_manager.iter_archive(archive),
137
- },
138
- ),
139
- datasets.SplitGenerator(
140
- name=datasets.Split.TEST,
141
- # These kwargs will be passed to _generate_examples
142
- gen_kwargs={
143
- "filepath": _TEST_FILE_NAME,
144
- "files": dl_manager.iter_archive(archive),
145
- },
146
- ),
147
- datasets.SplitGenerator(
148
- name=datasets.Split.VALIDATION,
149
- # These kwargs will be passed to _generate_examples
150
- gen_kwargs={
151
- "filepath": _VAL_FILE_NAME,
152
- "files": dl_manager.iter_archive(archive),
153
- },
154
- ),
155
- ]
156
-
157
- def _generate_examples(self, filepath, files):
158
- """Yields examples."""
159
-
160
- for path, f in files:
161
- if path == filepath:
162
- lines = (line.decode("utf-8") for line in f)
163
- data = csv.DictReader(lines, delimiter="\t", quoting=csv.QUOTE_NONE)
164
- for id_, row in enumerate(data):
165
- yield id_, {
166
- "id": row["id"],
167
- "sentence1": row["sentence1"],
168
- "sentence2": row["sentence2"],
169
- "label": row["label"],
170
- }
171
- break
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
zh/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdae3237c12a49165aacf489d3ab60b832b7672e7775abf937a1495f3ab75c80
3
+ size 344638
zh/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87aa77e8c763193c40b7ddf38c0cad5b35550f5186e5922bd2a6c631bc73ce0e
3
+ size 8487518
zh/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c830a0a82e411c3587537380f88abd53d7dba08624a1f3ec1da43bf8265fbef
3
+ size 346797