acul
commited on
Commit
•
787ed4c
1
Parent(s):
bb8e7dc
add 2022_27 snapshot
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- 2022_27/dedup/oscar-000000000001.json.gz +3 -0
- 2022_27/dedup/oscar-000000000002.json.gz +3 -0
- 2022_27/dedup/oscar-000000000003.json.gz +3 -0
- 2022_27/dedup/oscar-000000000004.json.gz +3 -0
- 2022_27/dedup/oscar-000000000005.json.gz +3 -0
- 2022_27/dedup/oscar-000000000006.json.gz +3 -0
- 2022_27/dedup/oscar-000000000007.json.gz +3 -0
- 2022_27/dedup/oscar-000000000008.json.gz +3 -0
- 2022_27/dedup/oscar-000000000009.json.gz +3 -0
- 2022_27/dedup/oscar-000000000010.json.gz +3 -0
- 2022_27/dedup/oscar-000000000011.json.gz +3 -0
- 2022_27/dedup/oscar-000000000012.json.gz +3 -0
- 2022_27/dedup/oscar-000000000013.json.gz +3 -0
- 2022_27/dedup/oscar-000000000014.json.gz +3 -0
- 2022_27/dedup/oscar-000000000015.json.gz +3 -0
- 2022_27/dedup/oscar-000000000016.json.gz +3 -0
- 2022_27/dedup/oscar-000000000017.json.gz +3 -0
- 2022_27/dedup/oscar-000000000018.json.gz +3 -0
- 2022_27/dedup/oscar-000000000019.json.gz +3 -0
- 2022_27/dedup/oscar-000000000020.json.gz +3 -0
- 2022_27/dedup/oscar-000000000021.json.gz +3 -0
- 2022_27/dedup/oscar-000000000022.json.gz +3 -0
- 2022_27/dedup/oscar-000000000023.json.gz +3 -0
- 2022_27/dedup/oscar-000000000024.json.gz +3 -0
- 2022_27/dedup/oscar-000000000025.json.gz +3 -0
- 2022_27/dedup/oscar-000000000026.json.gz +3 -0
- 2022_27/dedup/oscar-000000000027.json.gz +3 -0
- 2022_27/dedup/oscar-000000000028.json.gz +3 -0
- 2022_27/dedup/oscar-000000000029.json.gz +3 -0
- 2022_27/dedup/oscar-000000000030.json.gz +3 -0
- 2022_27/dedup/oscar-000000000031.json.gz +3 -0
- 2022_27/dedup/oscar-000000000032.json.gz +3 -0
- 2022_27/dedup/oscar-000000000033.json.gz +3 -0
- 2022_27/dedup/oscar-000000000034.json.gz +3 -0
- 2022_27/dedup/oscar-000000000035.json.gz +3 -0
- 2022_27/dedup/oscar-000000000036.json.gz +3 -0
- 2022_27/dedup/oscar-000000000037.json.gz +3 -0
- 2022_27/dedup/oscar-000000000038.json.gz +3 -0
- 2022_27/dedup/oscar_2202_27_dedup.py +107 -0
- 2022_27/neardup/oscar-neardup-000000000001.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000002.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000003.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000004.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000005.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000006.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000007.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000008.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000009.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000010.json.gz +3 -0
- 2022_27/neardup/oscar-neardup-000000000011.json.gz +3 -0
2022_27/dedup/oscar-000000000001.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ed818be322853e5e6c0f090a0fe8e061e807b52d018773ece8f55a67db230664
|
3 |
+
size 161404433
|
2022_27/dedup/oscar-000000000002.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94aa078e0f635b6c3617d4dc6912d6661e2c9e6181f8c06f5c9d78a29e7e743b
|
3 |
+
size 165257164
|
2022_27/dedup/oscar-000000000003.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:912c783044247cf2ad754e899115aab161c066c10978486620133cd7e64235d9
|
3 |
+
size 175252968
|
2022_27/dedup/oscar-000000000004.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70003adbd315946bb1194698bf970a16fab4e5a34088a5657ff7d1d5f80bd6b4
|
3 |
+
size 169272224
|
2022_27/dedup/oscar-000000000005.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3cb7cfea6402c6bd599e94d11952915e8b5c3d5e2d0c7194d3ac12835e716a12
|
3 |
+
size 161765318
|
2022_27/dedup/oscar-000000000006.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ebde1bdad093da0239637c4f702a62fca2eafea3517bc59db90b079fcca7104
|
3 |
+
size 159083347
|
2022_27/dedup/oscar-000000000007.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10d7b419c26d4e64d93f0c510d1f92573fefc7c11207c405fe97e0050ad62b3e
|
3 |
+
size 161484440
|
2022_27/dedup/oscar-000000000008.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46573389fcd0abbc961de3004ab3b48ec8fc38d7e6d17ec34a6b38b57632a47f
|
3 |
+
size 160075781
|
2022_27/dedup/oscar-000000000009.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2930125a4f713ca5397a1f25fd2bc80e1f655d85460b4bdc2ae5bffce5a5d9ba
|
3 |
+
size 160908753
|
2022_27/dedup/oscar-000000000010.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3fd53c00f7305c0efef60e1917cf184dd01ddd76c8807617138715517832a9be
|
3 |
+
size 175261371
|
2022_27/dedup/oscar-000000000011.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09fd8493ee81f74606c5e3cd292b3016ddddf4e9774d96f847d7fa0c972b384f
|
3 |
+
size 156593905
|
2022_27/dedup/oscar-000000000012.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8cb1c5cae694c148654aa9fb2bc760c9c85dca6c6897f8254b6df916c2b97f3e
|
3 |
+
size 169866993
|
2022_27/dedup/oscar-000000000013.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb68e2f4b16b3d4fc842065964af3d55e366272596063fcf57e93eefbab32110
|
3 |
+
size 174019433
|
2022_27/dedup/oscar-000000000014.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94aa02b7a6e2fb2eea2abe3e88c7303c3e0799ec5a0c11f60727f81fc9797136
|
3 |
+
size 151755173
|
2022_27/dedup/oscar-000000000015.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6469d60665e7402280d605dabed250a65d94a81ebcd42b9b2bde859d58f9ba4a
|
3 |
+
size 158045002
|
2022_27/dedup/oscar-000000000016.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:136a27732b901393ac84cddf6d1fa9a9fe75a4516c47e000dd13aa3ea77d4b47
|
3 |
+
size 170745823
|
2022_27/dedup/oscar-000000000017.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a7aaea085a4589a5f6b4512fbc31788e8b944d4cbfcde4c3be44629ca91368a
|
3 |
+
size 159195671
|
2022_27/dedup/oscar-000000000018.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1effb69fe8b52a2c129a00971d708e7618ef006969c2f44fd1777d3fa2c2a0b
|
3 |
+
size 151167201
|
2022_27/dedup/oscar-000000000019.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e50629c939be2f39edd4cca2e049117494a3c24847d78a4ebfbb08b65cc56cd1
|
3 |
+
size 156562943
|
2022_27/dedup/oscar-000000000020.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:253dc4d687fa6ca3503d664897da79d672b35c2707486d14bd35f8a5768fb8c9
|
3 |
+
size 162021874
|
2022_27/dedup/oscar-000000000021.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:db1f73f9604f866e8f4a321050a6e383dd9b0a13924e692a19ccd5c2f55b48d2
|
3 |
+
size 151966198
|
2022_27/dedup/oscar-000000000022.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:02e0df81e256bed933943eb7e00511f710da70b3737a3c9801a93e33b083c5f9
|
3 |
+
size 152003736
|
2022_27/dedup/oscar-000000000023.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac8e452539c89710c978244b3c97122e4a3dcd2e247542c3c3a02111042fbd33
|
3 |
+
size 173414698
|
2022_27/dedup/oscar-000000000024.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a034a8edd2c7f72e1ddfa2494c89d03e1a70cfc4498df02e0e62904c39e35a9
|
3 |
+
size 159473535
|
2022_27/dedup/oscar-000000000025.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:deb12609a0a04897872041dcd43ac7b83e3af243c4d30dac39d803579090caca
|
3 |
+
size 156434959
|
2022_27/dedup/oscar-000000000026.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f426b91e82cd7e5c29877439ae17589982e0bf4059f6d4f86f6d31a3edf2455d
|
3 |
+
size 167003876
|
2022_27/dedup/oscar-000000000027.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:819cc462e72b19db7848ecf56b8497c0fe4c9d7b4dce694b96719efae37051b4
|
3 |
+
size 146713005
|
2022_27/dedup/oscar-000000000028.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c9011576603c22d9a929898a13652e71e59c2e746bda1adecd743c95a4bba59
|
3 |
+
size 155357859
|
2022_27/dedup/oscar-000000000029.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b7b812281aa8149fffb19ede12a826a82f4dd49c30eafe3d88d5ff160e9d8e6
|
3 |
+
size 161445853
|
2022_27/dedup/oscar-000000000030.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:551e99a5459b84a5674d2990ca5e2a5cbd8f744101abf20e6b73e828a1df9ff4
|
3 |
+
size 149105831
|
2022_27/dedup/oscar-000000000031.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3fd325f6e0816d04bc9d286caca0f8e8c16b10deb5b8919e2abcc92f0d59b094
|
3 |
+
size 143460360
|
2022_27/dedup/oscar-000000000032.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d037fdfefb6a91bcbb5c62676031e3a96a495047d6a92210b510952e3754637e
|
3 |
+
size 176538152
|
2022_27/dedup/oscar-000000000033.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4998fca0a7ecae0c880426afc1bbcbafc17926d4428b71ac193e6acbb9f9087
|
3 |
+
size 160825238
|
2022_27/dedup/oscar-000000000034.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7ed5941df146909c3323ebe7aa2167983221251c9195b33419bf88610442993
|
3 |
+
size 144108473
|
2022_27/dedup/oscar-000000000035.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ac1b4559faef4d8656a23fa582f90229b4a8fb3d1085f4451a966be2e4ba7c1
|
3 |
+
size 165056690
|
2022_27/dedup/oscar-000000000036.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ba6450228f67a6009e11187379f3d0b23aba5025690b7383007cdb15920741e
|
3 |
+
size 156863975
|
2022_27/dedup/oscar-000000000037.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcb4d3384bac589ab6d2a7bc0980b688e4f3d24b5019c80ea99016ea8650d803
|
3 |
+
size 175512460
|
2022_27/dedup/oscar-000000000038.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8879785440663a00687db81023d551d006c3a83dd1449623e944760bd6134ae4
|
3 |
+
size 12284845
|
2022_27/dedup/oscar_2202_27_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/june_2202_27_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_27/neardup/oscar-neardup-000000000001.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:189a399eb40189feb7af689bc15caafe2c42f5d44bd0a228b9925bc5d47c0b54
|
3 |
+
size 147216965
|
2022_27/neardup/oscar-neardup-000000000002.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df6b1f528da55d8c15b89370c71297436c241834e52526b14c3c7678563febc9
|
3 |
+
size 146042992
|
2022_27/neardup/oscar-neardup-000000000003.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac167d50127015a850cf4d9b40a39cd50c3f7853a65478874f6f742ea97eb1f2
|
3 |
+
size 153766440
|
2022_27/neardup/oscar-neardup-000000000004.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2446f3751f2e6079493b95cf943c0c99ea9586bcde5d21c0abbf3bf5aad19fef
|
3 |
+
size 145374290
|
2022_27/neardup/oscar-neardup-000000000005.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c2cc002fd5ae0bf170a86d6955a66af99070dc47ffb173f3cf86be64c8c683f
|
3 |
+
size 143109123
|
2022_27/neardup/oscar-neardup-000000000006.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c40f4880b78d2c5b00b4b3a3d6b4ad6ce29a4f69ecf5d4460735d212752c815
|
3 |
+
size 143958514
|
2022_27/neardup/oscar-neardup-000000000007.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:111bd6fcf406d327f813b1c203e70cfbd874e886bbceb80946287dd2f0907c59
|
3 |
+
size 140569841
|
2022_27/neardup/oscar-neardup-000000000008.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c027fd51918fd2eed6715c7e5f9cb4f2076d4f844c834c1014f89ec09f7c2ba
|
3 |
+
size 144862694
|
2022_27/neardup/oscar-neardup-000000000009.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10b0c033a923ee48374c7c42d41ad6327f38f5cafff9aff19a127ae5d739fb5b
|
3 |
+
size 153783789
|
2022_27/neardup/oscar-neardup-000000000010.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f6c3b6a8427286e2075f225569bb91398fe1d32118038e0adaa706b7d1551b1
|
3 |
+
size 150519965
|
2022_27/neardup/oscar-neardup-000000000011.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb823ec344ce882b17252a05bb27f7f86bb8063955373e842e2dd6c0f4c2c7ce
|
3 |
+
size 160599694
|