Valahaar
commited on
Commit
•
b951a6a
1
Parent(s):
986bcac
using bz2 for faster download
Browse files- .gitattributes +8 -8
- data/wmt/dev/{de.jsonl → de.jsonl.bz2} +2 -2
- data/wmt/dev/{en.jsonl → en.jsonl.bz2} +2 -2
- data/wmt/test_2014/{de.jsonl → de.jsonl.bz2} +2 -2
- data/wmt/test_2014/{en.jsonl → en.jsonl.bz2} +2 -2
- data/wmt/test_2019/de.jsonl +0 -3
- data/wmt/test_2019/de.jsonl.bz2 +3 -0
- data/wmt/test_2019/en.jsonl +0 -3
- data/wmt/test_2019/en.jsonl.bz2 +3 -0
- data/wmt/train/de.jsonl +0 -3
- data/wmt/train/de.jsonl.bz2 +3 -0
- data/wmt/train/en.jsonl +0 -3
- data/wmt/train/en.jsonl.bz2 +3 -0
- wsdmt.py +3 -2
.gitattributes
CHANGED
@@ -14,11 +14,11 @@
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
17 |
-
data/wmt/train/de.jsonl filter=lfs diff=lfs merge=lfs -text
|
18 |
-
data/wmt/train/en.jsonl filter=lfs diff=lfs merge=lfs -text
|
19 |
-
data/wmt/dev/de.jsonl filter=lfs diff=lfs merge=lfs -text
|
20 |
-
data/wmt/dev/en.jsonl filter=lfs diff=lfs merge=lfs -text
|
21 |
-
data/wmt/test_2014/de.jsonl filter=lfs diff=lfs merge=lfs -text
|
22 |
-
data/wmt/test_2014/en.jsonl filter=lfs diff=lfs merge=lfs -text
|
23 |
-
data/wmt/test_2019/de.jsonl filter=lfs diff=lfs merge=lfs -text
|
24 |
-
data/wmt/test_2019/en.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
17 |
+
data/wmt/train/de.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
18 |
+
data/wmt/train/en.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
19 |
+
data/wmt/dev/de.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
20 |
+
data/wmt/dev/en.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
21 |
+
data/wmt/test_2014/de.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
22 |
+
data/wmt/test_2014/en.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
23 |
+
data/wmt/test_2019/de.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
24 |
+
data/wmt/test_2019/en.jsonl.bz2 filter=lfs diff=lfs merge=lfs -text
|
data/wmt/dev/{de.jsonl → de.jsonl.bz2}
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:bddbdae84dd6e80c315c36c170effb080d9af857dfa1fac824d8e4f3ca47a2ab
|
3 |
+
size 165016
|
data/wmt/dev/{en.jsonl → en.jsonl.bz2}
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:9df8eab754e7eafbf3030986ed42c6dc56aeec1fa1df60759cc28ab2e16ab400
|
3 |
+
size 176123
|
data/wmt/test_2014/{de.jsonl → de.jsonl.bz2}
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:40acf92c719b25ca79e959bba59d0b9451e91b181a424958d68fb780c282e56f
|
3 |
+
size 167505
|
data/wmt/test_2014/{en.jsonl → en.jsonl.bz2}
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:8f78ac1facae4616630297bf9f1310f449ecb5ddb61e32a04da8f140ac493303
|
3 |
+
size 178825
|
data/wmt/test_2019/de.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:10af55de97fbcd1c117650be00cd4a697a2c8415ae154842558c633227b0a290
|
3 |
-
size 1243951
|
|
|
|
|
|
|
|
data/wmt/test_2019/de.jsonl.bz2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a9ceba7890234421d755810578644971db7232d8e0f1bd5d114514e771420d9d
|
3 |
+
size 124090
|
data/wmt/test_2019/en.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:5edacd1ed905a3cf8c145c1b2b3cc6ae899ef6ad1b0687e603b6bfe29a7eefd6
|
3 |
-
size 1268863
|
|
|
|
|
|
|
|
data/wmt/test_2019/en.jsonl.bz2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc1fddee6169d47071698d067740291fa6ce38e87c082fabcc1d2bbf6e7be940
|
3 |
+
size 129310
|
data/wmt/train/de.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:cad6a49e57427c95a4d9afc73ab2c660aebb603b959128054f0df00fa81eabd5
|
3 |
-
size 2445311682
|
|
|
|
|
|
|
|
data/wmt/train/de.jsonl.bz2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c9b191386be527a813a982397545226bf3280484ee04ee9e48faa9acf357bd8b
|
3 |
+
size 253410770
|
data/wmt/train/en.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:ef55d7fb8ef4b3dd6c6bdd97230f47bd6d32223e9a1acc98627f597c1a72d94b
|
3 |
-
size 2605470850
|
|
|
|
|
|
|
|
data/wmt/train/en.jsonl.bz2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2d858aca065b0894e4906116c18f0bc2b0201b651361a740916c7aa7972b6ae
|
3 |
+
size 264277432
|
wsdmt.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import json
|
|
|
2 |
|
3 |
import datasets
|
4 |
from datasets import DownloadManager, DatasetInfo
|
@@ -24,7 +25,7 @@ class WSDMTDataset(datasets.GeneratorBasedBuilder):
|
|
24 |
config: WSDMTConfig
|
25 |
|
26 |
def _generate_examples(self, path_lang1, path_lang2):
|
27 |
-
with open(path_lang1) as f1, open(path_lang2) as f2:
|
28 |
for n, (line1, line2) in enumerate(zip(f1, f2)):
|
29 |
sentence1_data = json.loads(line1)
|
30 |
sentence2_data = json.loads(line2)
|
@@ -82,7 +83,7 @@ class WSDMTDataset(datasets.GeneratorBasedBuilder):
|
|
82 |
}
|
83 |
for split in split_names
|
84 |
}
|
85 |
-
downloaded = dl_manager.
|
86 |
|
87 |
return [
|
88 |
datasets.SplitGenerator(name=split,
|
|
|
1 |
import json
|
2 |
+
import bz2
|
3 |
|
4 |
import datasets
|
5 |
from datasets import DownloadManager, DatasetInfo
|
|
|
25 |
config: WSDMTConfig
|
26 |
|
27 |
def _generate_examples(self, path_lang1, path_lang2):
|
28 |
+
with bz2.open(path_lang1) as f1, bz2.open(path_lang2) as f2:
|
29 |
for n, (line1, line2) in enumerate(zip(f1, f2)):
|
30 |
sentence1_data = json.loads(line1)
|
31 |
sentence2_data = json.loads(line2)
|
|
|
83 |
}
|
84 |
for split in split_names
|
85 |
}
|
86 |
+
downloaded = dl_manager.download(urls)
|
87 |
|
88 |
return [
|
89 |
datasets.SplitGenerator(name=split,
|