parquet-converter commited on
Commit
050d4cd
1 Parent(s): d47df2c

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,27 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
all/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6317ece29ac9c746b7ed16eff5c6f364c92f9930bf08539820e1ae291132be70
3
+ size 2479050
all/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb0d9072bc76c15fc4c956eb189d7a644899481fa192ec24d0196677ccf69bfd
3
+ size 62857214
all/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfe1635d451f9e054a836fdd9718212403619d2f1110392cbae308dc752291a9
3
+ size 2443067
all_x_en/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01d39e594943c9d59c52832bb28415cf9ac938c35d704b3348fa000d4bc7da69
3
+ size 2170311
all_x_en/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:003c9f3650cb403a61f1e997d0a12bb9de8956514f9ae3f6dac73bca0853326c
3
+ size 54426926
all_x_en/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d289d02b69fbb0272eb0860e86a791290ae330e1a72ff388aa13d69f94a6c554
3
+ size 2137163
de/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89bd40a6580badfab4317aab3438f009dc02dcd681fe2c56b7813cedb55d96bf
3
+ size 351725
de/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a75025b6273bd6a43d9dac360382f7647216d41e6f29ca2b35f2051988712ec
3
+ size 8905654
de/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79dd1b1b6f2084cc6d0122c4659ec9e1b7cad4ef1bb08e7757b0c885b5e8b2ca
3
+ size 344538
en/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06bfa6590452e281fcdb6834d1deab167518fdf3f6e7c2a06051cbcc72f5e7de
3
+ size 309848
en/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03924e9f73a6a914b8bdc4ba75a2c61764b92b700c7490ed98cc941d192b099c
3
+ size 8428141
en/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3d16c5c8b75695c5fb38707cedd0ef70d23bf52edd7353d73877ff537876181
3
+ size 307013
es/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a33009abecc1f8559478f546023636073b4413fb2d8827f4e02b52dfbcc23278
3
+ size 345484
es/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68ddf4292b8c6b30bf6ad451859737265c0f5285794a206f2632f8b87d4484ea
3
+ size 8851830
es/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c23ceda036ea2541b7df7fac1934fc5879d391cb35f2d39cbe50a169b76e8958
3
+ size 341498
fr/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa34aa655a10e598779697e210d968f78ba5fe3cacc199555bb4adb31cbddb4d
3
+ size 351596
fr/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d1bb25cf756bfc46027f0ea1dddee5d1f9ac40cee1543538efbc2aa4b82e463
3
+ size 9086988
fr/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55e69683a1c56ad18c91b970e1fd1f160353dbaf936fc827c68d644dae429565
3
+ size 346823
ja/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b6a13ddf18ec9d6b87cec0a22c5bbeb6f1e1b26f919e092caf582662f97bfbc
3
+ size 409818
ja/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a629aa53e51e387c2ab9dd26bafd2b60c601b8f92504654e8da92b63ac20b7f5
3
+ size 9625001
ja/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d9d01c84bdcde3c371147e2fbe0636c9d6555ed3f13e6d70b2a6400c1cf27a6
3
+ size 400889
ko/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6a1a79c73612cb8deeafc3d4edf7727f3f9d5572583b74d5aed7d6d6f912380
3
+ size 372704
ko/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b290c8ce8d759cb934673c0ea0ab20cae101f42344bbd8654617bc865dd0dbd5
3
+ size 9528993
ko/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65147325491ab1471129a2d8fc2f91176cbac914133037bb37cd4ba14bab37da
3
+ size 362272
paws-x-all.py DELETED
@@ -1,190 +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
- import os
20
-
21
- import datasets
22
-
23
-
24
- _CITATION = """\
25
- @InProceedings{pawsx2019emnlp,
26
- title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},
27
- author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},
28
- booktitle = {Proc. of EMNLP},
29
- year = {2019}
30
- }
31
- """
32
-
33
- _DESCRIPTION = """\
34
- PAWS-X, a multilingual version of PAWS (Paraphrase Adversaries from Word Scrambling) for six languages.
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
- For further details, see the accompanying paper: PAWS-X: A Cross-lingual Adversarial Dataset
40
- for Paraphrase Identification (https://arxiv.org/abs/1908.11828)
41
- NOTE: There might be some missing or wrong labels in the dataset and we have replaced them with -1.
42
- """
43
-
44
- _HOMEPAGE = "https://github.com/google-research-datasets/paws/tree/master/pawsx"
45
-
46
- # TODO: Add the licence for the dataset here if you can find it
47
- _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.'
48
-
49
- # TODO: Add link to the official dataset URLs here
50
- # The HuggingFace dataset library don't host the datasets but only point to the original files
51
- # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
52
- _LANGUAGES = [
53
- "en",
54
- "de",
55
- "es",
56
- "fr",
57
- "ja",
58
- "ko",
59
- "zh"
60
- ]
61
-
62
- _DATA_OPTIONS = [
63
- "en",
64
- "de",
65
- "es",
66
- "fr",
67
- "ja",
68
- "ko",
69
- "zh",
70
- "all",
71
- "all_x_en"
72
- ]
73
-
74
- _DATA_URL = "https://storage.googleapis.com/paws/pawsx/x-final.tar.gz"
75
-
76
-
77
- class PAWSXConfig(datasets.BuilderConfig):
78
- """BuilderConfig for PAWSX."""
79
-
80
- def __init__(self, **kwargs):
81
- """Constructs a PAWSXConfig.
82
- Args:
83
- **kwargs: keyword arguments forwarded to super.
84
- """
85
- super(PAWSXConfig, self).__init__(version=datasets.Version("1.1.0", ""), **kwargs),
86
-
87
-
88
- class PAWSX(datasets.GeneratorBasedBuilder):
89
- """PAWS-X, a multilingual version of PAWS for six languages."""
90
-
91
- VERSION = datasets.Version("1.1.0")
92
-
93
- BUILDER_CONFIGS = [
94
- PAWSXConfig(
95
- name=config_name,
96
- description=(f"This config contains samples in {config_name}."),
97
- )
98
- for config_name in _DATA_OPTIONS
99
- ]
100
-
101
- def _info(self):
102
- features = datasets.Features(
103
- {
104
- "id": datasets.Value("int32"),
105
- "sentence1": datasets.Value("string"),
106
- "sentence2": datasets.Value("string"),
107
- "label": datasets.features.ClassLabel(names=["0", "1"]),
108
- }
109
- )
110
- return datasets.DatasetInfo(
111
- # This is the description that will appear on the datasets page.
112
- description=_DESCRIPTION,
113
- # This defines the different columns of the dataset and their types
114
- features=features, # Here we define them above because they are different between the two configurations
115
- # If there's a common (input, target) tuple from the features,
116
- # specify them here. They'll be used if as_supervised=True in
117
- # builder.as_dataset.
118
- supervised_keys=None,
119
- # Homepage of the dataset for documentation
120
- homepage=_HOMEPAGE,
121
- # License for the dataset if available
122
- license=_LICENSE,
123
- # Citation for the dataset
124
- citation=_CITATION,
125
- )
126
-
127
- def _split_generators(self, dl_manager):
128
- """Returns SplitGenerators."""
129
-
130
- data_dir = dl_manager.download_and_extract(_DATA_URL)
131
-
132
- if self.config.name == "all_x_en":
133
- _TEST_FILE_NAME = [os.path.join(data_dir, f"x-final/{l}/test_2k.tsv") for l in _LANGUAGES if l != "en"]
134
- _VAL_FILE_NAME = [os.path.join(data_dir, f"x-final/{l}/dev_2k.tsv") for l in _LANGUAGES if l != "en"]
135
- elif self.config.name == "all":
136
- _TEST_FILE_NAME = [os.path.join(data_dir, f"x-final/{l}/test_2k.tsv") for l in _LANGUAGES]
137
- _VAL_FILE_NAME = [os.path.join(data_dir, f"x-final/{l}/dev_2k.tsv") for l in _LANGUAGES]
138
- else:
139
- _TEST_FILE_NAME = [os.path.join(data_dir, f"x-final/{self.config.name}/test_2k.tsv")]
140
- _VAL_FILE_NAME = [os.path.join(data_dir, f"x-final/{self.config.name}/dev_2k.tsv")]
141
-
142
- if self.config.name == "en":
143
- _TRAIN_FILE_NAME = [os.path.join(data_dir, f"x-final/{self.config.name}/train.tsv")]
144
- elif self.config.name == "all_x_en":
145
- _TRAIN_FILE_NAME = [os.path.join(data_dir, f"x-final/{l}/translated_train.tsv") for l in _LANGUAGES if l != "en"]
146
- elif self.config.name == "all":
147
- _TRAIN_FILE_NAME = [os.path.join(data_dir, f"x-final/{l}/translated_train.tsv") for l in _LANGUAGES if l != "en"]
148
- _TRAIN_FILE_NAME += [os.path.join(data_dir, f"x-final/en/train.tsv")]
149
- else:
150
- _TRAIN_FILE_NAME = [os.path.join(data_dir, f"x-final/{self.config.name}/translated_train.tsv")]
151
-
152
- return [
153
- datasets.SplitGenerator(
154
- name=datasets.Split.TRAIN,
155
- # These kwargs will be passed to _generate_examples
156
- gen_kwargs={
157
- "filepaths": _TRAIN_FILE_NAME,
158
- "split": datasets.Split.TRAIN,
159
- },
160
- ),
161
- datasets.SplitGenerator(
162
- name=datasets.Split.TEST,
163
- # These kwargs will be passed to _generate_examples
164
- gen_kwargs={
165
- "filepaths": _TEST_FILE_NAME,
166
- "split": datasets.Split.TEST,
167
- },
168
- ),
169
- datasets.SplitGenerator(
170
- name=datasets.Split.VALIDATION,
171
- # These kwargs will be passed to _generate_examples
172
- gen_kwargs={
173
- "filepaths": _VAL_FILE_NAME,
174
- "split": datasets.Split.VALIDATION,
175
- },
176
- ),
177
- ]
178
-
179
- def _generate_examples(self, filepaths, split):
180
- """Yields examples."""
181
- for f_id_, filepath in enumerate(filepaths):
182
- with open(filepath, encoding="utf-8") as f:
183
- data = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
184
- for id_, row in enumerate(data):
185
- yield f"{id_}{f_id_}", {
186
- "id": row["id"],
187
- "sentence1": row["sentence1"],
188
- "sentence2": row["sentence2"],
189
- "label": row["label"],
190
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
zh/paws-x-all-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6aa37977217b9ff1c5cdb060e19bf612477b1a793735389cd6fb8af42854765
3
+ size 344637
zh/paws-x-all-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6191b0bf52141076ff8f1df3ee98fa6f26a7abe6a3b3a84eccdf83f60664db6f
3
+ size 8487517
zh/paws-x-all-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fc23337d343f34f1095605b47e5714d41d9470224a7cd21a8b2c739650e6344
3
+ size 346796