Datasets:

Languages:
Indonesian
Multilinguality:
monolingual
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
original
ArXiv:
License:
acul commited on
Commit
b10eb56
1 Parent(s): 042efab

add 2021_39 dedup

Browse files
Files changed (45) hide show
  1. 2021_39/dedup/2021_39_dedup.py +107 -0
  2. 2021_39/dedup/oscar-000000000001.json.gz +3 -0
  3. 2021_39/dedup/oscar-000000000002.json.gz +3 -0
  4. 2021_39/dedup/oscar-000000000003.json.gz +3 -0
  5. 2021_39/dedup/oscar-000000000004.json.gz +3 -0
  6. 2021_39/dedup/oscar-000000000005.json.gz +3 -0
  7. 2021_39/dedup/oscar-000000000006.json.gz +3 -0
  8. 2021_39/dedup/oscar-000000000007.json.gz +3 -0
  9. 2021_39/dedup/oscar-000000000008.json.gz +3 -0
  10. 2021_39/dedup/oscar-000000000009.json.gz +3 -0
  11. 2021_39/dedup/oscar-000000000010.json.gz +3 -0
  12. 2021_39/dedup/oscar-000000000011.json.gz +3 -0
  13. 2021_39/dedup/oscar-000000000012.json.gz +3 -0
  14. 2021_39/dedup/oscar-000000000013.json.gz +3 -0
  15. 2021_39/dedup/oscar-000000000014.json.gz +3 -0
  16. 2021_39/dedup/oscar-000000000015.json.gz +3 -0
  17. 2021_39/dedup/oscar-000000000016.json.gz +3 -0
  18. 2021_39/dedup/oscar-000000000017.json.gz +3 -0
  19. 2021_39/dedup/oscar-000000000018.json.gz +3 -0
  20. 2021_39/dedup/oscar-000000000019.json.gz +3 -0
  21. 2021_39/dedup/oscar-000000000020.json.gz +3 -0
  22. 2021_39/dedup/oscar-000000000021.json.gz +3 -0
  23. 2021_39/dedup/oscar-000000000022.json.gz +3 -0
  24. 2021_39/dedup/oscar-000000000023.json.gz +3 -0
  25. 2021_39/dedup/oscar-000000000024.json.gz +3 -0
  26. 2021_39/dedup/oscar-000000000025.json.gz +3 -0
  27. 2021_39/dedup/oscar-000000000026.json.gz +3 -0
  28. 2021_39/dedup/oscar-000000000027.json.gz +3 -0
  29. 2021_39/dedup/oscar-000000000028.json.gz +3 -0
  30. 2021_39/dedup/oscar-000000000029.json.gz +3 -0
  31. 2021_39/dedup/oscar-000000000030.json.gz +3 -0
  32. 2021_39/dedup/oscar-000000000031.json.gz +3 -0
  33. 2021_39/dedup/oscar-000000000032.json.gz +3 -0
  34. 2021_39/dedup/oscar-000000000033.json.gz +3 -0
  35. 2021_39/dedup/oscar-000000000034.json.gz +3 -0
  36. 2021_39/dedup/oscar-000000000035.json.gz +3 -0
  37. 2021_39/dedup/oscar-000000000036.json.gz +3 -0
  38. 2021_39/dedup/oscar-000000000037.json.gz +3 -0
  39. 2021_39/dedup/oscar-000000000038.json.gz +3 -0
  40. 2021_39/dedup/oscar-000000000039.json.gz +3 -0
  41. 2021_39/dedup/oscar-000000000040.json.gz +3 -0
  42. 2021_39/dedup/oscar-000000000041.json.gz +3 -0
  43. 2021_39/dedup/oscar-000000000042.json.gz +3 -0
  44. 2021_39/dedup/oscar-000000000043.json.gz +3 -0
  45. 2021_39/dedup/oscar-000000000044.json.gz +3 -0
2021_39/dedup/2021_39_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/KoPI-CC/2021_39/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_39/dedup/oscar-000000000001.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb03adf73fa26b26be29ef01469fdae0bd76bcf7bbd240e8a1cf32b0bc91fc90
3
+ size 131022844
2021_39/dedup/oscar-000000000002.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07dc35197607865b9657caf1b27a88d66704e9bfbcf6d5fe27ef4b0391956036
3
+ size 148800632
2021_39/dedup/oscar-000000000003.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:395c679720c2d17674a110c6ea260ef930664fa8b91336c8204cecd4af6a2cf7
3
+ size 146777259
2021_39/dedup/oscar-000000000004.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3180887d959f91a0635af7e646bbe0bcc08075e1f3f0d3ca1ede6b6220b3044
3
+ size 135469399
2021_39/dedup/oscar-000000000005.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddcedd6c5ac5b4fa9932321a2e8213672c1d5c0c984359fcd28919cc30f93713
3
+ size 142133172
2021_39/dedup/oscar-000000000006.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a0692bf07769815011317a52f58cbe0e3dacf7a4549cc17f49f647d32f87e35
3
+ size 127099886
2021_39/dedup/oscar-000000000007.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b0e6da57401f97f0d97efb98c74113031bc82c5c52808b480df3e5de6a2ddfe
3
+ size 130119868
2021_39/dedup/oscar-000000000008.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6088e35937b0fed7a23eb14cc0a765d2d6f3376e0e3fa082042f46f27f383a46
3
+ size 132520432
2021_39/dedup/oscar-000000000009.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce181b3b06064ca802c7747def8b2757069ca61154812d48602c9de9aaed35e7
3
+ size 136781600
2021_39/dedup/oscar-000000000010.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c181b3c2e683b01be1996435b35f8891a380e2acc56a6f6b973fbf52075fcdc2
3
+ size 141774568
2021_39/dedup/oscar-000000000011.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b39d5e09eda28b2be2a0c3aba1ebc84a4be25b5292155d0792b0f3a7275279f7
3
+ size 137652347
2021_39/dedup/oscar-000000000012.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e59d593d200fda1edeef94385d0567265aa6195de69bebf1683a931fdd4b6b9
3
+ size 130631111
2021_39/dedup/oscar-000000000013.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad8705d8ffa9a1e8b7eec78e8dde4a44e8412f4e5d75ee53b09305a933c7c1d5
3
+ size 130537718
2021_39/dedup/oscar-000000000014.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df8a01524503a859ff76c8d66074fd1994dd5206385ad87a3aec14226ad96254
3
+ size 135055954
2021_39/dedup/oscar-000000000015.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb35167fda3e5b34f39a852c31c7b02425f0213b4e91980bd246e4ad389878f6
3
+ size 135807045
2021_39/dedup/oscar-000000000016.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:741ff5cab9f052276e73d3bb5ac7dc85fb71319017834d8d687cec3e9c6cfebd
3
+ size 138491442
2021_39/dedup/oscar-000000000017.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91c420b01368b35178e5ec1c13f1382b56adcd4c7b91ef940b83affae4611a6e
3
+ size 140235823
2021_39/dedup/oscar-000000000018.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ea5ceaf8c840dcb51fc0fca3bd179914dbacc89581efe6cd231cd3f0a67544c
3
+ size 137838034
2021_39/dedup/oscar-000000000019.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d91b4367bd122a3d36364f350be1fe2e8e0895ce4bbb8d0197d01ae4c421ebf1
3
+ size 139123628
2021_39/dedup/oscar-000000000020.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dffd72627ca1bed3eba1cd13f795304110e227e79834fd6260ce4e72b59cad4
3
+ size 148532947
2021_39/dedup/oscar-000000000021.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a3ead9b596f8acfd9a75d13b588a56e8c51de3538a02cff57da11745291dc8b
3
+ size 144493080
2021_39/dedup/oscar-000000000022.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d57f8bf30df97b40e039e02c7f91d3022dada1d36389b33fb59c640f3f60ae
3
+ size 152758017
2021_39/dedup/oscar-000000000023.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2fa73be387c6cc7f2ba03a93a69c24429c02ada5b76108a596291105c7ca1bf
3
+ size 146021652
2021_39/dedup/oscar-000000000024.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48924600a9c6505eee4f93f0df49bc85655caa38b99e79f356e194ad9fff94a6
3
+ size 141156506
2021_39/dedup/oscar-000000000025.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9794ebf2bdc0a7dd95b93bc03402b9464a33e0cbe17754ea84c9493fb511b28d
3
+ size 141996331
2021_39/dedup/oscar-000000000026.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4109a42b54c5a093bd9e123d7769fcededdc73356d0070b0c9475e57274c4e3f
3
+ size 142942322
2021_39/dedup/oscar-000000000027.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6261821c5cc0a6c8bb52c7354505fb6611c1fd5c57882c882edcef9ef22c4289
3
+ size 140490707
2021_39/dedup/oscar-000000000028.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c3be05d74b1e70e26d966c14363e159b67a69b34582fecf409bfbde56db336f
3
+ size 134357656
2021_39/dedup/oscar-000000000029.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b354b1181b812d2756c2621055ae6de1f7c0677764e0f654890bb5f7b4dcec52
3
+ size 152672402
2021_39/dedup/oscar-000000000030.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c3a40d3ba6a9ad4ec3c73d1ecc116062806de0f71989a468d5c6a9f82d943ea
3
+ size 148350476
2021_39/dedup/oscar-000000000031.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf2d6b5b53917019e7327f95183b03d82f5f25b8a04bff3e330c95686e88d249
3
+ size 145240404
2021_39/dedup/oscar-000000000032.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d63c8c0e171ae7b06a1db4f6d16edc817bd04d33fdc27422b65a43c35b87796
3
+ size 141341057
2021_39/dedup/oscar-000000000033.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7125b8bf6b63c87235354f48884038c7c13a123f281c7d555a61c19aed69433b
3
+ size 132632582
2021_39/dedup/oscar-000000000034.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabda1f5bfc16806dcfecf45b28712d40cae4d664b8da8b7a8416c3ebd39dceb
3
+ size 144790304
2021_39/dedup/oscar-000000000035.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0da8af7b7b1bd71541f5cbf40e5f9c86f301121eba2ad6ad6cf413d909766f01
3
+ size 143107673
2021_39/dedup/oscar-000000000036.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90ab44c635773fa529d5a2a833dfa80c9cbf6807b6e47b5b6a67f5386ae4cd48
3
+ size 139134078
2021_39/dedup/oscar-000000000037.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:630c63384c9b27ef6f86e1723220e39703de880a7e2ca76578ee7379a8373b43
3
+ size 153446582
2021_39/dedup/oscar-000000000038.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:168d9dde6f359dc7f5868fb9af5dbfe9a39e7d9b9b1fc7ffb048132a106b31ee
3
+ size 157291385
2021_39/dedup/oscar-000000000039.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00f264e826192bcb2a9cae2750d0f84a3adc63bec5d22183626c90f83efa8604
3
+ size 139981588
2021_39/dedup/oscar-000000000040.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:418c1f3c26497c00e2bb9a7022bdf3f6254214ea9376c09aaaf14c9ad4f7f379
3
+ size 140327431
2021_39/dedup/oscar-000000000041.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89c065767a5b353dcc3139bb71317de222bf11607ffe01830b2fafbefe397827
3
+ size 134904659
2021_39/dedup/oscar-000000000042.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15e690363c09dee501dfe9fdc45cf9d3de8c49c7e12f4b6af886d3c44ec1e932
3
+ size 145699850
2021_39/dedup/oscar-000000000043.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:998a03f3dc2259c42614a871ad36f220cfd97e4cfaa4533ea0a33aa4da80182e
3
+ size 146193014
2021_39/dedup/oscar-000000000044.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f1a22a6b1fbc11d84bdc1447d4fc521632cb5cdac1e944ae623c81db25d2575
3
+ size 83494813