parquet-converter commited on
Commit
bf3f2de
1 Parent(s): e0d7bb9

Update parquet files

Browse files
conceptual_12m_indo.py DELETED
@@ -1,82 +0,0 @@
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
- """Conceptual 12M dataset."""
16
-
17
- import datasets
18
- import gzip
19
- import json
20
-
21
-
22
- _CITATION = """\
23
- @inproceedings{changpinyo2021cc12m,
24
- title = {{Conceptual 12M}: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Concepts},
25
- author = {Changpinyo, Soravit and Sharma, Piyush and Ding, Nan and Soricut, Radu},
26
- booktitle = {CVPR},
27
- year = {2021},
28
- }
29
- """
30
-
31
- _DESCRIPTION = """\
32
- Conceptual 12M is a large-scale dataset of 12 million
33
- image-text pairs specifically meant to be used for visionand-language pre-training.
34
- Its data collection pipeline is a relaxed version of the one used in Conceptual Captions 3M.
35
- """
36
-
37
- _HOMEPAGE = "https://github.com/google-research-datasets/conceptual-12m"
38
-
39
- _LICENSE = """\
40
- The dataset may be freely used for any purpose, although acknowledgement of
41
- Google LLC ("Google") as the data source would be appreciated. The dataset is
42
- provided "AS IS" without any warranty, express or implied. Google disclaims all
43
- liability for any damages, direct or indirect, resulting from the use of the
44
- dataset.
45
- """
46
-
47
- _URL = "https://huggingface.co/datasets/munggok/CC_12M_Indonesia/resolve/main/data/cc12m_indo.jsonl.gz"
48
-
49
-
50
- class Conceptual12M(datasets.GeneratorBasedBuilder):
51
- """Conceptual 12M Indonesia dataset."""
52
-
53
- def _info(self):
54
- features = datasets.Features({"image_url": datasets.Value("string"), "caption": datasets.Value("string")})
55
-
56
- return datasets.DatasetInfo(
57
- description=_DESCRIPTION,
58
- features=features,
59
- homepage=_HOMEPAGE,
60
- license=_LICENSE,
61
- citation=_CITATION,
62
- )
63
-
64
- def _split_generators(self, dl_manager):
65
- file = dl_manager.download(_URL)
66
- return [
67
- datasets.SplitGenerator(
68
- name=datasets.Split.TRAIN,
69
- gen_kwargs={
70
- "file": file,
71
- },
72
- ),
73
- ]
74
-
75
- def _generate_examples(self, file):
76
- id_ = 0
77
- with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as fi:
78
- for line in fi:
79
- if line:
80
- example = json.loads(line)
81
- yield id_, {"image_url": example['url'], "caption": example['caption']}
82
- id_ += 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/cc12m_indo.jsonl.gz → munggok--CC_12M_Indonesia/json-train-00000-of-00006.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a6de84cba57774ec9380b73e38037117830ba2cfe7a6d44d253a6d1cc02c61d7
3
- size 1279405711
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c89f1d8427abd07dd71a7e33c895413d9d38ad21b70441a270c961007fc826e6
3
+ size 340076604
munggok--CC_12M_Indonesia/json-train-00001-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50a4fe33b53f45f23c3b6f6a9a6b478dc0fed2bd03ae78ac172e030cf4b0fef6
3
+ size 340008052
munggok--CC_12M_Indonesia/json-train-00002-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5566fe61f2d0898ff4405e5980e0df67da9a3bef072b0346ff0ffaa5f3cf1e15
3
+ size 340036655
munggok--CC_12M_Indonesia/json-train-00003-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c12cae8eb773262a443df6ab62b089cf940d23426e79047b213ba11c8f8cdef
3
+ size 340028628
munggok--CC_12M_Indonesia/json-train-00004-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0c90ab3b3c384ed99ba7fb1aa3f21d57bf2848400adb4c7d61c5e8335b8fb15
3
+ size 339954881
munggok--CC_12M_Indonesia/json-train-00005-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb646de6c5bf9fe5669e52a10df43c2c7d140033e288d108c66a49972985e119
3
+ size 230332891