Datasets:
lm
commited on
Commit
•
faeb762
1
Parent(s):
fda8ada
fast loading
Browse files- .gitattributes +0 -22
- README.md +52 -1
- en-tr/test.jsonl.gz +0 -3
- es-en/test.jsonl.gz +0 -3
- fr-en/test.jsonl.gz +0 -3
- it-en/test.jsonl.gz +0 -3
- ko-ko/test.jsonl.gz +0 -3
- nl-en/test.jsonl.gz +0 -3
- sts17-crosslingual-sts.py +0 -75
- en-ar/test.jsonl.gz → test/ar-ar.jsonl.gz +2 -2
- en-de/test.jsonl.gz → test/en-ar.jsonl.gz +2 -2
- en-en/test.jsonl.gz → test/en-de.jsonl.gz +2 -2
- ar-ar/test.jsonl.gz → test/en-en.jsonl.gz +2 -2
- test/en-tr.jsonl.gz +3 -0
- test/es-en.jsonl.gz +3 -0
- es-es/test.jsonl.gz → test/es-es.jsonl.gz +2 -2
- test/fr-en.jsonl.gz +3 -0
- test/it-en.jsonl.gz +3 -0
- test/ko-ko.jsonl.gz +3 -0
- test/nl-en.jsonl.gz +3 -0
.gitattributes
CHANGED
@@ -35,26 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
35 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
38 |
-
es-es.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
39 |
-
fr-en.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
40 |
-
it-en.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
41 |
-
en-ar.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
42 |
-
en-de.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
43 |
-
en-tr.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
44 |
-
es-en.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
45 |
-
ar-ar.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
46 |
-
en-en.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
47 |
-
nl-en.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
48 |
*.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
49 |
-
en-en/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
50 |
-
es-es/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
51 |
-
en-ar/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
52 |
-
en-de/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
53 |
-
es-en/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
54 |
-
fr-en/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
55 |
-
it-en/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
56 |
-
nl-en/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
57 |
-
ar-ar/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
58 |
-
en-tr/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
59 |
-
ko-ko/ filter=lfs diff=lfs merge=lfs -text
|
60 |
-
ko-ko/test.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
|
|
35 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
*.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -9,4 +9,55 @@ language:
|
|
9 |
- nl
|
10 |
- ko
|
11 |
- tr
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
- nl
|
10 |
- ko
|
11 |
- tr
|
12 |
+
|
13 |
+
configs:
|
14 |
+
- config_name: default
|
15 |
+
data_files:
|
16 |
+
- split: test
|
17 |
+
path: "test/*"
|
18 |
+
- config_name: ko-ko
|
19 |
+
data_files:
|
20 |
+
- split: test
|
21 |
+
path: "test/ko-ko.jsonl.gz"
|
22 |
+
- config_name: ar-ar
|
23 |
+
data_files:
|
24 |
+
- split: test
|
25 |
+
path: "test/ar-ar.jsonl.gz"
|
26 |
+
- config_name: en-ar
|
27 |
+
data_files:
|
28 |
+
- split: test
|
29 |
+
path: "test/en-ar.jsonl.gz"
|
30 |
+
- config_name: en-de
|
31 |
+
data_files:
|
32 |
+
- split: test
|
33 |
+
path: "test/en-de.jsonl.gz"
|
34 |
+
- config_name: en-en
|
35 |
+
data_files:
|
36 |
+
- split: test
|
37 |
+
path: "test/en-en.jsonl.gz"
|
38 |
+
- config_name: en-tr
|
39 |
+
data_files:
|
40 |
+
- split: test
|
41 |
+
path: "test/en-tr.jsonl.gz"
|
42 |
+
- config_name: es-en
|
43 |
+
data_files:
|
44 |
+
- split: test
|
45 |
+
path: "test/es-en.jsonl.gz"
|
46 |
+
- config_name: es-es
|
47 |
+
data_files:
|
48 |
+
- split: test
|
49 |
+
path: "test/es-es.jsonl.gz"
|
50 |
+
- config_name: fr-en
|
51 |
+
data_files:
|
52 |
+
- split: test
|
53 |
+
path: "test/fr-en.jsonl.gz"
|
54 |
+
- config_name: it-en
|
55 |
+
data_files:
|
56 |
+
- split: test
|
57 |
+
path: "test/it-en.jsonl.gz"
|
58 |
+
- config_name: nl-en
|
59 |
+
data_files:
|
60 |
+
- split: test
|
61 |
+
path: "test/nl-en.jsonl.gz"
|
62 |
+
|
63 |
+
---
|
en-tr/test.jsonl.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c5c95e83ab1f191efef0461e45eda51c38208dd9ecf28f411cf54ccb099f42eb
|
3 |
-
size 10248
|
|
|
|
|
|
|
|
es-en/test.jsonl.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:9c46d3ad01dc8b4c5003ade44315b2c03fbac22b21a3e88dad0aeb4e63396f9d
|
3 |
-
size 10242
|
|
|
|
|
|
|
|
fr-en/test.jsonl.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:cd4c6b4b843b110b348177fb4d677d3a1a3407f8dfb8be3c17462caef39c8a54
|
3 |
-
size 10321
|
|
|
|
|
|
|
|
it-en/test.jsonl.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:0fd5b741985aed635c5afff4bbde20823fa3c68119cc2ad02e68c53a0d303347
|
3 |
-
size 10277
|
|
|
|
|
|
|
|
ko-ko/test.jsonl.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:fe279502b49a451126722b18e1ecfcfd25b73deb14bbc8c0c1f3da1e3dc691a5
|
3 |
-
size 147317
|
|
|
|
|
|
|
|
nl-en/test.jsonl.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:7dd3803aa4c140118cf42c8472ecbc069c796b6bc122a07a59174eb39050da89
|
3 |
-
size 9996
|
|
|
|
|
|
|
|
sts17-crosslingual-sts.py
DELETED
@@ -1,75 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
|
3 |
-
"""MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages"""
|
4 |
-
|
5 |
-
import json
|
6 |
-
import datasets
|
7 |
-
import os
|
8 |
-
import gzip
|
9 |
-
|
10 |
-
logger = datasets.logging.get_logger(__name__)
|
11 |
-
|
12 |
-
_DESCRIPTION = """\
|
13 |
-
STS17 Cross-lingual dataset
|
14 |
-
"""
|
15 |
-
|
16 |
-
_LANGUAGES = [
|
17 |
-
'ko-ko',
|
18 |
-
'ar-ar',
|
19 |
-
'en-ar',
|
20 |
-
'en-de',
|
21 |
-
'en-en',
|
22 |
-
'en-tr',
|
23 |
-
'es-en',
|
24 |
-
'es-es',
|
25 |
-
'fr-en',
|
26 |
-
'it-en',
|
27 |
-
'nl-en'
|
28 |
-
]
|
29 |
-
|
30 |
-
class STS17_CROSSLINGUAL(datasets.GeneratorBasedBuilder):
|
31 |
-
"""STS2017 Cross-lingual"""
|
32 |
-
|
33 |
-
BUILDER_CONFIGS = [
|
34 |
-
datasets.BuilderConfig(
|
35 |
-
name=name,
|
36 |
-
version=datasets.Version("1.0.0"),
|
37 |
-
description=f"The STS17 cross-lingual dataset for {name} language pair.",
|
38 |
-
)
|
39 |
-
for name in _LANGUAGES
|
40 |
-
]
|
41 |
-
|
42 |
-
DEFAULT_CONFIG_NAME = 'en-en'
|
43 |
-
|
44 |
-
def _info(self):
|
45 |
-
return datasets.DatasetInfo(
|
46 |
-
description=_DESCRIPTION,
|
47 |
-
features=datasets.Features(
|
48 |
-
{
|
49 |
-
"sentence1": datasets.Value("string"),
|
50 |
-
"sentence2": datasets.Value("string"),
|
51 |
-
"score": datasets.Value("float32"),
|
52 |
-
},
|
53 |
-
),
|
54 |
-
supervised_keys=None,
|
55 |
-
homepage="http://ixa2.si.ehu.eus/stswiki/index.php/STSbenchmark",
|
56 |
-
)
|
57 |
-
|
58 |
-
def _split_generators(self, dl_manager):
|
59 |
-
url = f'{self.config.name}/test.jsonl.gz'
|
60 |
-
archive_path = dl_manager.download(url)
|
61 |
-
|
62 |
-
return [
|
63 |
-
datasets.SplitGenerator(
|
64 |
-
name=datasets.Split.TEST,
|
65 |
-
gen_kwargs={
|
66 |
-
"text_path": archive_path,
|
67 |
-
},
|
68 |
-
),
|
69 |
-
]
|
70 |
-
|
71 |
-
def _generate_examples(self, text_path):
|
72 |
-
"""Yields examples."""
|
73 |
-
with gzip.open(text_path,'rt',encoding='utf-8') as f:
|
74 |
-
for i, line in enumerate(f):
|
75 |
-
yield i, json.loads(line)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
en-ar/test.jsonl.gz → test/ar-ar.jsonl.gz
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38fc7d3292360b1e7d5d2578c3729e44c2a2f31b0dc8c9028c1d7307f87c5ccf
|
3 |
+
size 10849
|
en-de/test.jsonl.gz → test/en-ar.jsonl.gz
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5cb556fa11b14ec6c2ab6bbb70684333b4b7c2b65e634abba74ee977204a3820
|
3 |
+
size 11752
|
en-en/test.jsonl.gz → test/en-de.jsonl.gz
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c80701e1e3ce330cabd17b759a75115631e6ce7b96ce02db3e778587f0b8d36d
|
3 |
+
size 10435
|
ar-ar/test.jsonl.gz → test/en-en.jsonl.gz
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fcb0a275365b9c600fe1954a20eae089a258b18ab518a5fcdf9ec2d5a9ce50e5
|
3 |
+
size 8857
|
test/en-tr.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30c39ae1ef71f67606a5d3f5d6c03efd9c53cbf812c95ae4f78bac8b03c59a61
|
3 |
+
size 10560
|
test/es-en.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:387a393fdd66875bc8e7aa8f6e275c736065c6c0f1624a50bfb720e24584c4c4
|
3 |
+
size 10408
|
es-es/test.jsonl.gz → test/es-es.jsonl.gz
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:279dd47347deedd3b6d0e29294d84650732bcb944cb0b679ec5f47f70a101daa
|
3 |
+
size 9654
|
test/fr-en.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a223ea9cbde309b26e38305301bf88beeb50ac21b6865c8c42f3f48d837d566a
|
3 |
+
size 10472
|
test/it-en.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63876184a3adc525c9307eebd882396b19cb283788bb0ecff3d53203469db783
|
3 |
+
size 10418
|
test/ko-ko.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0146803d9a361507c3def6f827b14f10632b2d525d0631b68c7fdaf866355041
|
3 |
+
size 165120
|
test/nl-en.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8339ef250e67dbc70263aac0149ad59ddd35d235f856ee7bb80dc140e8c3a69e
|
3 |
+
size 10125
|