acul
commited on
Commit
•
a96287d
1
Parent(s):
be383a9
add 2021_31 snapshot
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- 2021_31/dedup/oscar-000000000001.json.gz +3 -0
- 2021_31/dedup/oscar-000000000002.json.gz +3 -0
- 2021_31/dedup/oscar-000000000003.json.gz +3 -0
- 2021_31/dedup/oscar-000000000004.json.gz +3 -0
- 2021_31/dedup/oscar-000000000005.json.gz +3 -0
- 2021_31/dedup/oscar-000000000006.json.gz +3 -0
- 2021_31/dedup/oscar-000000000007.json.gz +3 -0
- 2021_31/dedup/oscar-000000000008.json.gz +3 -0
- 2021_31/dedup/oscar-000000000009.json.gz +3 -0
- 2021_31/dedup/oscar-000000000010.json.gz +3 -0
- 2021_31/dedup/oscar-000000000011.json.gz +3 -0
- 2021_31/dedup/oscar-000000000012.json.gz +3 -0
- 2021_31/dedup/oscar-000000000013.json.gz +3 -0
- 2021_31/dedup/oscar-000000000014.json.gz +3 -0
- 2021_31/dedup/oscar-000000000015.json.gz +3 -0
- 2021_31/dedup/oscar-000000000016.json.gz +3 -0
- 2021_31/dedup/oscar-000000000017.json.gz +3 -0
- 2021_31/dedup/oscar-000000000018.json.gz +3 -0
- 2021_31/dedup/oscar-000000000019.json.gz +3 -0
- 2021_31/dedup/oscar-000000000020.json.gz +3 -0
- 2021_31/dedup/oscar-000000000021.json.gz +3 -0
- 2021_31/dedup/oscar-000000000022.json.gz +3 -0
- 2021_31/dedup/oscar-000000000023.json.gz +3 -0
- 2021_31/dedup/oscar-000000000024.json.gz +3 -0
- 2021_31/dedup/oscar-000000000025.json.gz +3 -0
- 2021_31/dedup/oscar-000000000026.json.gz +3 -0
- 2021_31/dedup/oscar-000000000027.json.gz +3 -0
- 2021_31/dedup/oscar-000000000028.json.gz +3 -0
- 2021_31/dedup/oscar-000000000029.json.gz +3 -0
- 2021_31/dedup/oscar-000000000030.json.gz +3 -0
- 2021_31/dedup/oscar-000000000031.json.gz +3 -0
- 2021_31/dedup/oscar-000000000032.json.gz +3 -0
- 2021_31/dedup/oscar-000000000033.json.gz +3 -0
- 2021_31/dedup/oscar-000000000034.json.gz +3 -0
- 2021_31/dedup/oscar-000000000035.json.gz +3 -0
- 2021_31/dedup/oscar-000000000036.json.gz +3 -0
- 2021_31/dedup/oscar-000000000037.json.gz +3 -0
- 2021_31/dedup/oscar-000000000038.json.gz +3 -0
- 2021_31/dedup/oscar-000000000039.json.gz +3 -0
- 2021_31/dedup/oscar-000000000040.json.gz +3 -0
- 2021_31/dedup/oscar-000000000041.json.gz +3 -0
- 2021_31/dedup/oscar-000000000042.json.gz +3 -0
- 2021_31/dedup/oscar-000000000043.json.gz +3 -0
- 2021_31/dedup/oscar-000000000044.json.gz +3 -0
- 2021_31/dedup/oscar-000000000045.json.gz +3 -0
- 2021_31/dedup/oscar-000000000046.json.gz +3 -0
- 2021_31/dedup/oscar-000000000047.json.gz +3 -0
- 2021_31/dedup/oscar_2021_31.py +107 -0
- 2021_31/neardup/neardup_2021-31.py +107 -0
- 2021_31/neardup/oscar-neardup-000000000001.json.gz +3 -0
2021_31/dedup/oscar-000000000001.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4af09a9f0519373cfa5bda94ed56c45eb703799b0727cf8da084b22ae31b67aa
|
3 |
+
size 118154133
|
2021_31/dedup/oscar-000000000002.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdf01ce8672c36820a9bb294ecf88b9d6205f343928132b71532cb9b1882f5bf
|
3 |
+
size 125429318
|
2021_31/dedup/oscar-000000000003.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:366153ce77f2e164043f616cfc19fa4dbb7a21a940c5e731247a0b30f94ce88f
|
3 |
+
size 125796840
|
2021_31/dedup/oscar-000000000004.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65db2f845e96ede9442bdf84cd2a2a172a1b179e3e2286f25ce77171c4a633ac
|
3 |
+
size 125428639
|
2021_31/dedup/oscar-000000000005.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2be8785b452b5a2ef4a53e1d1b709b179034dc23d108225f01f5fb597af48fd3
|
3 |
+
size 127500270
|
2021_31/dedup/oscar-000000000006.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5c93c4e1e9c717346ad36afb08b64dd5a1796c6592c536e90ba87b1bf315dbe
|
3 |
+
size 130054063
|
2021_31/dedup/oscar-000000000007.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6fd366fb8c26f2853ef29e471f2e97eadbfe9cbff42d43920914d2eed6cbc875
|
3 |
+
size 129134096
|
2021_31/dedup/oscar-000000000008.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:598f6657be8a0153447263ecab8fa51c2fd2b2b47af58474a227c9f95bd92aa8
|
3 |
+
size 124823217
|
2021_31/dedup/oscar-000000000009.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2cd2ef08d893fad9a69d93d95d847f7aae7e8328e8fbc7f508f1473970df6ccb
|
3 |
+
size 125515984
|
2021_31/dedup/oscar-000000000010.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c8d1951649572f4b749fcc679ced35302d1b04f81226f6ab159d85b248c0258
|
3 |
+
size 127084376
|
2021_31/dedup/oscar-000000000011.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0749773c7b7998b689f7ebc49477168640d38599dcb50ef4198c70cff7784469
|
3 |
+
size 131652886
|
2021_31/dedup/oscar-000000000012.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3645db837c21e361aa5171815a77153872ba6265ccc5523e5f09af7ccc63fa53
|
3 |
+
size 130402614
|
2021_31/dedup/oscar-000000000013.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e577872489504db9ef22bebb5fdd0132550a39c84e53195de71d379108575362
|
3 |
+
size 145510930
|
2021_31/dedup/oscar-000000000014.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:166eb950bb10b03278a3da8f00af2305b5dafe5ce40d29002c784ea51d7b66f7
|
3 |
+
size 140921901
|
2021_31/dedup/oscar-000000000015.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:385c36cc2091c4cfbfde408ca359b60f78e12cdea3c08f82879fcb105aa8470d
|
3 |
+
size 129651282
|
2021_31/dedup/oscar-000000000016.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca0bc172212994383fcee6e2b4c2d4de20ba7651135e03924a4a4025e4aa53d8
|
3 |
+
size 131420924
|
2021_31/dedup/oscar-000000000017.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c955dc25353e11f5e7b783f7a0874f2e8250639fc55ab0bcd4b312bfcaad4937
|
3 |
+
size 124528522
|
2021_31/dedup/oscar-000000000018.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33b2c42c0fd77c0805ae9ad35ce3d5ce579b469cf23552201603b7234f56a1ad
|
3 |
+
size 122412737
|
2021_31/dedup/oscar-000000000019.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f9dfeabf7e4362c1f1a8ee255d994223f6740ad80364f364b8e5dbcbff004e2
|
3 |
+
size 123449747
|
2021_31/dedup/oscar-000000000020.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:856b03dbf70451441af27ad1e4f0a9611bbca82d7523852ac9661bf3848946cb
|
3 |
+
size 122999394
|
2021_31/dedup/oscar-000000000021.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:532209f106fb58d0338c37a143dc2493b3b585abace23c26600eab835d9ac794
|
3 |
+
size 128694667
|
2021_31/dedup/oscar-000000000022.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5affd3bc9bad5b62c00890d6b748ef36f60092226da312de06a1b0342159ac79
|
3 |
+
size 123672030
|
2021_31/dedup/oscar-000000000023.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b04437154ea62979241ae84f8056adb0dc82cdf16f7762fa02ebfddb826e5189
|
3 |
+
size 129759218
|
2021_31/dedup/oscar-000000000024.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e67ed8dd5194f32e68b107366f6d9a3025600c7c641641adb0d4a237a7482a1a
|
3 |
+
size 141684147
|
2021_31/dedup/oscar-000000000025.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c6bc4d6bc6f69910fbed7e15266db816672e7cccdd03e95a0856c8309ee22c3a
|
3 |
+
size 130382760
|
2021_31/dedup/oscar-000000000026.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80cbe9a6ab18479b62a5326f9d6f444932e7e403d9026d836ba2ef5d9311cf9d
|
3 |
+
size 129863333
|
2021_31/dedup/oscar-000000000027.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:807988f60ae7cb49f4bcf7b3d70b352654c0854a1d82ffb1ce20f4b339fbe084
|
3 |
+
size 135625027
|
2021_31/dedup/oscar-000000000028.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:98ef94bf6f0fbf3e08d68bd51214361a8d5dfc13605ac6a17e7e1df9f4778504
|
3 |
+
size 136888636
|
2021_31/dedup/oscar-000000000029.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0dd95e7f823fbb5d5c577104e0b15326107d5f3edcc732909519ab362f477bec
|
3 |
+
size 137028574
|
2021_31/dedup/oscar-000000000030.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:079baf8567f78569129ea9893524c2d9c6e302839f18c1c4c36bae9c0ca36792
|
3 |
+
size 129442603
|
2021_31/dedup/oscar-000000000031.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0623299ce358c215614e1c52ec3485ea70d4ac7d5476ab9016a9bc31fcbcb0b8
|
3 |
+
size 131049332
|
2021_31/dedup/oscar-000000000032.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fbffa5d14b4683f10a9e3258846b9272bb8d741c6cc7dcbcb48bf903496e9daa
|
3 |
+
size 130368912
|
2021_31/dedup/oscar-000000000033.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:744bb8a72427c6f13b61743da9f62de1ec9db35cc788d8d54c45b7a1e9384e79
|
3 |
+
size 126684326
|
2021_31/dedup/oscar-000000000034.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a2612f2186fe2e3b1459442cc504026bd8f86846cdf6634a6df7db89c2dcd9fc
|
3 |
+
size 145575118
|
2021_31/dedup/oscar-000000000035.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78295c4749591be3e16d9e16688ca92a2884a111e92248475bdbf46e86e4d46b
|
3 |
+
size 128578017
|
2021_31/dedup/oscar-000000000036.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e3e4da0275724f84df7f7916aa9b500b308fd2f4801d34fcd11d28b7fede8a1
|
3 |
+
size 133548111
|
2021_31/dedup/oscar-000000000037.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5666ed02408bfb514e1ea1e9064b2307918ca8d1e2c85ff33a27413452bd46bf
|
3 |
+
size 138331328
|
2021_31/dedup/oscar-000000000038.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:496fee49fc3d80feb92518388241de28f0c66610a26256c5f96b7c76aafe38fa
|
3 |
+
size 142169080
|
2021_31/dedup/oscar-000000000039.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3389bdc92335c6e183fda8f71cf71e6af8ec5b20da3a015065836f62913ae755
|
3 |
+
size 139683821
|
2021_31/dedup/oscar-000000000040.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8cb8188faf22014c265b8e05b36f08718b6625b9ef7d06d4b185e8c8a93ef42f
|
3 |
+
size 136145355
|
2021_31/dedup/oscar-000000000041.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f414a373e5b2a524d1026ce59a6d6744593cb6706666d96ee07dd95b7fe45cc
|
3 |
+
size 133877972
|
2021_31/dedup/oscar-000000000042.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5df0397005b2f17fdd4e7b786053e18ecd93f46814e64166990048a0889c069a
|
3 |
+
size 130318068
|
2021_31/dedup/oscar-000000000043.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ef00ea14e5826adb9ab06b225d9a3d90ee277bc6cb3d60127dbea2ba931a0be
|
3 |
+
size 128263059
|
2021_31/dedup/oscar-000000000044.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a577bf027fde00b924b959ad6d862375ad52e88d06fedc10d44ebfb98ce0a5a
|
3 |
+
size 125290714
|
2021_31/dedup/oscar-000000000045.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:923d0dc0528b6698227bbc3d49077464039506fefec9a8a7e2875181ad5975b1
|
3 |
+
size 125784728
|
2021_31/dedup/oscar-000000000046.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a639a046a6c1cca153a270643aa8c45b60b51c16f74902289de05cfb98f98f2c
|
3 |
+
size 135634754
|
2021_31/dedup/oscar-000000000047.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d70db8b8cc53e6ec12cc80e56aeb679effcd1815ae0a1691cc836ed7093e7de
|
3 |
+
size 1442618
|
2021_31/dedup/oscar_2021_31.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/oscar_2021-31_dedup/*.gz'))
|
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
|
2021_31/neardup/neardup_2021-31.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/oscar_2021-31_neardup/*.gz'))
|
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
|
2021_31/neardup/oscar-neardup-000000000001.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66f8ae699f84ddd28617b1339ef3b9b6784eeb0979c3341fbe9d54b937c2cc26
|
3 |
+
size 113734924
|