acul
commited on
Commit
·
bb8e7dc
1
Parent(s):
a96287d
add 2022_21 snapshot
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- 2022_21/dedup/oscar-000000000001.json.gz +3 -0
- 2022_21/dedup/oscar-000000000002.json.gz +3 -0
- 2022_21/dedup/oscar-000000000003.json.gz +3 -0
- 2022_21/dedup/oscar-000000000004.json.gz +3 -0
- 2022_21/dedup/oscar-000000000005.json.gz +3 -0
- 2022_21/dedup/oscar-000000000006.json.gz +3 -0
- 2022_21/dedup/oscar-000000000007.json.gz +3 -0
- 2022_21/dedup/oscar-000000000008.json.gz +3 -0
- 2022_21/dedup/oscar-000000000009.json.gz +3 -0
- 2022_21/dedup/oscar-000000000010.json.gz +3 -0
- 2022_21/dedup/oscar-000000000011.json.gz +3 -0
- 2022_21/dedup/oscar-000000000012.json.gz +3 -0
- 2022_21/dedup/oscar-000000000013.json.gz +3 -0
- 2022_21/dedup/oscar-000000000014.json.gz +3 -0
- 2022_21/dedup/oscar-000000000015.json.gz +3 -0
- 2022_21/dedup/oscar-000000000016.json.gz +3 -0
- 2022_21/dedup/oscar-000000000017.json.gz +3 -0
- 2022_21/dedup/oscar-000000000018.json.gz +3 -0
- 2022_21/dedup/oscar-000000000019.json.gz +3 -0
- 2022_21/dedup/oscar-000000000020.json.gz +3 -0
- 2022_21/dedup/oscar-000000000021.json.gz +3 -0
- 2022_21/dedup/oscar-000000000022.json.gz +3 -0
- 2022_21/dedup/oscar-000000000023.json.gz +3 -0
- 2022_21/dedup/oscar-000000000024.json.gz +3 -0
- 2022_21/dedup/oscar-000000000025.json.gz +3 -0
- 2022_21/dedup/oscar-000000000026.json.gz +3 -0
- 2022_21/dedup/oscar-000000000027.json.gz +3 -0
- 2022_21/dedup/oscar-000000000028.json.gz +3 -0
- 2022_21/dedup/oscar-000000000029.json.gz +3 -0
- 2022_21/dedup/oscar-000000000030.json.gz +3 -0
- 2022_21/dedup/oscar-000000000031.json.gz +3 -0
- 2022_21/dedup/oscar-000000000032.json.gz +3 -0
- 2022_21/dedup/oscar-000000000033.json.gz +3 -0
- 2022_21/dedup/oscar-000000000034.json.gz +3 -0
- 2022_21/dedup/oscar-000000000035.json.gz +3 -0
- 2022_21/dedup/oscar-000000000036.json.gz +3 -0
- 2022_21/dedup/oscar-000000000037.json.gz +3 -0
- 2022_21/dedup/oscar-000000000038.json.gz +3 -0
- 2022_21/dedup/oscar-000000000039.json.gz +3 -0
- 2022_21/dedup/oscar-000000000040.json.gz +3 -0
- 2022_21/dedup/oscar-000000000041.json.gz +3 -0
- 2022_21/dedup/oscar-000000000042.json.gz +3 -0
- 2022_21/dedup/oscar_2202_21_dedup.py +107 -0
- 2022_21/neardup/oscar-neardup-000000000001.json.gz +3 -0
- 2022_21/neardup/oscar-neardup-000000000002.json.gz +3 -0
- 2022_21/neardup/oscar-neardup-000000000003.json.gz +3 -0
- 2022_21/neardup/oscar-neardup-000000000004.json.gz +3 -0
- 2022_21/neardup/oscar-neardup-000000000005.json.gz +3 -0
- 2022_21/neardup/oscar-neardup-000000000006.json.gz +3 -0
- 2022_21/neardup/oscar-neardup-000000000007.json.gz +3 -0
2022_21/dedup/oscar-000000000001.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f52d3d9b51a4fc8cf9b9c53ca2b25746109f84346efeb4512def7f33c0324573
|
3 |
+
size 139788553
|
2022_21/dedup/oscar-000000000002.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c75ae698149f05af5d0a33f497c6fa29dda90c9cc0c4edba449ab2797f54e14c
|
3 |
+
size 138306488
|
2022_21/dedup/oscar-000000000003.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4333b792fbc5507065434d69f9450fe9a3e7938776d50c648261e9f82b7dc62e
|
3 |
+
size 128432452
|
2022_21/dedup/oscar-000000000004.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:17b067cc8a35811acdcb634946c0ffb6b1bcaffdf95d27c2b3f4a7d6d9d86aff
|
3 |
+
size 132581057
|
2022_21/dedup/oscar-000000000005.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f7163b27266e1624835ce6792a5bd0bd011d4e3cac7d4c1aec6574c6eea36ea
|
3 |
+
size 143808678
|
2022_21/dedup/oscar-000000000006.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a9bd0bbabe655eec1eb194f4c1e269d9ad946a78a8422d546ea27ae85671fb47
|
3 |
+
size 137092141
|
2022_21/dedup/oscar-000000000007.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d23c0028328b187238f0a59825b713396db9b50a5f1197af7f631e47bd06f81
|
3 |
+
size 133410432
|
2022_21/dedup/oscar-000000000008.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a87cfabef96a93bee4dce8407ad25af4a647370ab4d094093099e688ecc075a6
|
3 |
+
size 123040287
|
2022_21/dedup/oscar-000000000009.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:55d56f61a86df3e3b50ab770db14e1cf0ee57c37ab50b176ad99b4deba856b84
|
3 |
+
size 129543825
|
2022_21/dedup/oscar-000000000010.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11d9e7c1ef7412a1b13aabcfb96173d026a5fe5e5fdd7c9942888b46e9c63b83
|
3 |
+
size 145003077
|
2022_21/dedup/oscar-000000000011.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3300fff2960dc74b3adef97ee8e17849a11ae54ac6bf9f7249f5abe97e3f817c
|
3 |
+
size 140409464
|
2022_21/dedup/oscar-000000000012.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3995914bf5e94548f89ec27ac17c02fb4d1b55b1e86f66397c0b07455e416adc
|
3 |
+
size 137025374
|
2022_21/dedup/oscar-000000000013.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d372d2435e83ba291729d545341e73c6708e76be63bc187c77eca53b3da6c14b
|
3 |
+
size 137935037
|
2022_21/dedup/oscar-000000000014.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c81ef36903a3484f35857095fa11b8ecc41bf0f092879cdf9c9c6b8468c5ec4e
|
3 |
+
size 137560011
|
2022_21/dedup/oscar-000000000015.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e9c346c058c673d15639634c8375cb79e5e1b492b9ec284689406436814062ea
|
3 |
+
size 145537455
|
2022_21/dedup/oscar-000000000016.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:956c68e09687ccccd68be0ffec05193ef45b1604fadf3d0eb2a49356de668252
|
3 |
+
size 132439503
|
2022_21/dedup/oscar-000000000017.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:00d310835c11fd66b24027f890f141808790cf899e3203e94aed3c4945ea93f2
|
3 |
+
size 134546436
|
2022_21/dedup/oscar-000000000018.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3ca24764ffa86f6ff70433a505ba1f0f00651f21fd98db185e64d9a0fd6989b
|
3 |
+
size 136623261
|
2022_21/dedup/oscar-000000000019.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51666e8dac2c32ef077742819295e824fb7460fb7479b1f3662786c14cebdc85
|
3 |
+
size 146237980
|
2022_21/dedup/oscar-000000000020.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e5cb20d8fcf791aa153ebe250a842a53669987746e8c31659e1671df5196abd
|
3 |
+
size 139771550
|
2022_21/dedup/oscar-000000000021.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c0d42d37581e169fe411aff0b95beb2afa3f444f54c12321687ac983bae5957
|
3 |
+
size 136597867
|
2022_21/dedup/oscar-000000000022.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a63ecfa633c5f39cf3e1564b3a823de478abe13e94bf9bde0036937fa8dec28a
|
3 |
+
size 137182409
|
2022_21/dedup/oscar-000000000023.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e535b4be39daf0af938b2607069f7526cb8dd4747d23aa8fc5e0710a808b7bf1
|
3 |
+
size 140529941
|
2022_21/dedup/oscar-000000000024.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b4d63808f68ef0da51f7212d946cd2870207956b4390932602c305172013a81
|
3 |
+
size 137065366
|
2022_21/dedup/oscar-000000000025.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:008df189f96a46f196528663c48ec545cf212ed21168547c4f4db66eff1d4f60
|
3 |
+
size 133854612
|
2022_21/dedup/oscar-000000000026.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d36b6730bf0a1d2745982fec9c7f0aa3c5c00d5d1b663a08186a263f7f1b4047
|
3 |
+
size 157363261
|
2022_21/dedup/oscar-000000000027.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:92bf0b708224e3d6236a05800957896083902748ca803ece15ba124773c736f4
|
3 |
+
size 142919190
|
2022_21/dedup/oscar-000000000028.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da32f0bf34fae30c72cbcdd1b4658e9f7a952bd9a45224fae7b722297731229a
|
3 |
+
size 145598457
|
2022_21/dedup/oscar-000000000029.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7f744317cb031999207a66fc6f8b2abfa262d1abc5a5fb8f310b67ce7f3aac98
|
3 |
+
size 138452934
|
2022_21/dedup/oscar-000000000030.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d81158c50766cfb28a4ef328591bc01a98ffe8d780e5463aa54df7f921dc7df
|
3 |
+
size 139139176
|
2022_21/dedup/oscar-000000000031.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a95c9eb88a2c975c4661cd1b678f5632265b91252cbdc520182380e8874baa02
|
3 |
+
size 130806664
|
2022_21/dedup/oscar-000000000032.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7b0184be1bac64d0f1d33ae8160b7bfebec70748406e13ab243ce2241e70105
|
3 |
+
size 136103383
|
2022_21/dedup/oscar-000000000033.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8c5632d9f13a1443db13e4b55b8f0751ec6618db1907e7af78519aaa558cf32
|
3 |
+
size 143587149
|
2022_21/dedup/oscar-000000000034.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae7d0c7891c957465c0b2f57d636d17dac43bd0fb477fbff8a30d59cd97eb0b6
|
3 |
+
size 140504020
|
2022_21/dedup/oscar-000000000035.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78eeed1f0809ed85f153062921dcba93ff67a017fe25594fedf87e82b0e93292
|
3 |
+
size 126032033
|
2022_21/dedup/oscar-000000000036.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4b4776917e85144420750f4fbd98bf18dcd735b3ae5ecfdba85f0cc859c1de5
|
3 |
+
size 133828852
|
2022_21/dedup/oscar-000000000037.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f90d6e18191bd8ccc5e74ecfb82bcc1bcd0c76e8f3041cd875b29e7f0b38c6e
|
3 |
+
size 137628076
|
2022_21/dedup/oscar-000000000038.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68784a24e2944d5141ef3cf851c4006091e368551db26bbe61eee1a758d12675
|
3 |
+
size 131001534
|
2022_21/dedup/oscar-000000000039.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c26484b6242b5ba27d8dc8c838d4a531d21efc3dcc278fb243c921955e6e3cf
|
3 |
+
size 133449076
|
2022_21/dedup/oscar-000000000040.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d00105f7649957bf4ba96244cb289d5e36e0686a33400c0cd5eff42fc0b27839
|
3 |
+
size 137151871
|
2022_21/dedup/oscar-000000000041.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f7fa427b4533db5fcdb31d4a0750635faa34320b4bdbe552eb9176719318a00a
|
3 |
+
size 140264379
|
2022_21/dedup/oscar-000000000042.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0cfb490e273cb189829638272e23a28780e9cdc509e4b4bc1ed36a1d702d5bb
|
3 |
+
size 110449678
|
2022_21/dedup/oscar_2202_21_dedup.py
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"""Cleaned Indonesian split of the mC4 corpus."""
|
16 |
+
import json
|
17 |
+
import glob
|
18 |
+
import gzip
|
19 |
+
import textwrap
|
20 |
+
import datasets
|
21 |
+
logger = datasets.logging.get_logger(__name__)
|
22 |
+
|
23 |
+
file = sorted(glob.glob('/data/may_2202_21_dedup/data/*'))
|
24 |
+
_CITATION = """
|
25 |
+
@article{JMLR:v21:20-074,
|
26 |
+
author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
|
27 |
+
title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
|
28 |
+
journal = {Journal of Machine Learning Research},
|
29 |
+
year = {2020},
|
30 |
+
volume = {21},
|
31 |
+
number = {140},
|
32 |
+
pages = {1-67},
|
33 |
+
url = {http://jmlr.org/papers/v21/20-074.html}
|
34 |
+
}
|
35 |
+
"""
|
36 |
+
_DESCRIPTION = """\
|
37 |
+
A thoroughly cleaned version of the Italian portion of the multilingual
|
38 |
+
colossal, cleaned version of Common Crawl's web crawl corpus (mC4) by AllenAI.
|
39 |
+
Based on Common Crawl dataset: "https://commoncrawl.org".
|
40 |
+
This is the processed version of Google's mC4 dataset by AllenAI, with further cleaning
|
41 |
+
detailed in the repository README file.
|
42 |
+
"""
|
43 |
+
_HOMEPAGE = "https://github.com/allenai/allennlp/discussions/5056"
|
44 |
+
_LICENSE = "Open Data Commons Attribution License (ODC-By) v1.0"
|
45 |
+
_BASE_URL = "https://huggingface.co/datasets/munggok/mc4-id/resolve/main/mc4-id-filter/c4-id{split_suffix}.tfrecord-{index:05d}-of-{n_shards:05d}.json.gz"
|
46 |
+
_CONFIGS = {
|
47 |
+
"tiny": {"train": 100, "validation": 1},
|
48 |
+
"small": {"train": 250, "validation": 2},
|
49 |
+
"medium": {"train": 500, "validation": 4},
|
50 |
+
"large": {"train": 750, "validation": 6},
|
51 |
+
"full": {"train": 1016, "validation": 8}
|
52 |
+
}
|
53 |
+
class OscarConfig(datasets.BuilderConfig):
|
54 |
+
"""BuilderConfig for the Clean mC4 Italian."""
|
55 |
+
def __init__(self, **kwargs):
|
56 |
+
"""BuilderConfig for Clean mC4 Italian.
|
57 |
+
Args:
|
58 |
+
**kwargs: keyword arguments forwarded to super.
|
59 |
+
"""
|
60 |
+
super().__init__(**kwargs)
|
61 |
+
class Oscar(datasets.GeneratorBasedBuilder):
|
62 |
+
"""mC4, a colossal, cleaned version of Common Crawl's web crawl corpus."""
|
63 |
+
BUILDER_CONFIGS = [
|
64 |
+
OscarConfig(
|
65 |
+
name="full",
|
66 |
+
version=datasets.Version("1.0.0"),
|
67 |
+
description=textwrap.dedent(
|
68 |
+
f"""\
|
69 |
+
The full cleaned version of the Italian portion of the multilingual C4 corpus.
|
70 |
+
Estimated size of compressed files: 103GB
|
71 |
+
"""
|
72 |
+
)
|
73 |
+
)
|
74 |
+
]
|
75 |
+
def _info(self):
|
76 |
+
return datasets.DatasetInfo(
|
77 |
+
description=_DESCRIPTION,
|
78 |
+
features=datasets.Features(
|
79 |
+
{
|
80 |
+
"text": datasets.Value("string"),
|
81 |
+
"url": datasets.Value("string"),
|
82 |
+
"timestamp": datasets.Value("string"),
|
83 |
+
"meta": datasets.Value("string"),
|
84 |
+
}
|
85 |
+
),
|
86 |
+
supervised_keys=None,
|
87 |
+
homepage=_HOMEPAGE,
|
88 |
+
license=_LICENSE,
|
89 |
+
citation=_CITATION,
|
90 |
+
)
|
91 |
+
def _split_generators(self, dl_manager):
|
92 |
+
data_urls = {}
|
93 |
+
train_downloaded_files = file
|
94 |
+
return [
|
95 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": train_downloaded_files}),
|
96 |
+
]
|
97 |
+
def _generate_examples(self, filepaths):
|
98 |
+
"""This function returns the examples in the raw (text) form by iterating on all the files."""
|
99 |
+
id_ = 0
|
100 |
+
for filepath in filepaths:
|
101 |
+
logger.info(f"Generating examples from {filepath}")
|
102 |
+
with gzip.open(open(filepath, "rb"), "rt", encoding="utf-8") as f:
|
103 |
+
for line in f:
|
104 |
+
if line:
|
105 |
+
example = json.loads(line)
|
106 |
+
yield id_, {'text':example['text'],'url':example['url'],'timestamp':example['timestamp'],'meta': example['meta']}
|
107 |
+
id_ += 1
|
2022_21/neardup/oscar-neardup-000000000001.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7fb28869a6baef4b318b8a1753a1894f16bf0ed3c847f7174f8c6ac5fa354678
|
3 |
+
size 125932691
|
2022_21/neardup/oscar-neardup-000000000002.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:62dd6e6ab273bbb26ac0a7496a58b9ab037712744d2e2289d3c7b6d196144d5b
|
3 |
+
size 122554321
|
2022_21/neardup/oscar-neardup-000000000003.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:042c1ae17bb5d3c04c46d302d9f4021dd14182030f0e8a6d63ebb7cf297411aa
|
3 |
+
size 119691943
|
2022_21/neardup/oscar-neardup-000000000004.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6efb5fcd7c967a85cd1647f85c96fb7146301e6f2c4565a03ca27508aeb4723b
|
3 |
+
size 127688332
|
2022_21/neardup/oscar-neardup-000000000005.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c0d9072102b0f9c09b9c010c537d74b197d8b68fc0c556074fbbbdefaf138b0
|
3 |
+
size 128434585
|
2022_21/neardup/oscar-neardup-000000000006.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3e79a6482da85757301c7e576b0c1b00f83cf8fea2681b2153130753f3cad5f
|
3 |
+
size 121831498
|
2022_21/neardup/oscar-neardup-000000000007.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:146214b4ce23fc384cbcbaf0bdc0209ea4cbac6e82201ffdc1ab9d06f24bd1a2
|
3 |
+
size 117343943
|