parquet-converter commited on
Commit
2ed3e6a
·
1 Parent(s): 97f73ff

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,37 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.model filter=lfs diff=lfs merge=lfs -text
11
- *.msgpack filter=lfs diff=lfs merge=lfs -text
12
- *.onnx filter=lfs diff=lfs merge=lfs -text
13
- *.ot filter=lfs diff=lfs merge=lfs -text
14
- *.parquet filter=lfs diff=lfs merge=lfs -text
15
- *.pb filter=lfs diff=lfs merge=lfs -text
16
- *.pt filter=lfs diff=lfs merge=lfs -text
17
- *.pth filter=lfs diff=lfs merge=lfs -text
18
- *.rar filter=lfs diff=lfs merge=lfs -text
19
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
- *.tar.* filter=lfs diff=lfs merge=lfs -text
21
- *.tflite filter=lfs diff=lfs merge=lfs -text
22
- *.tgz filter=lfs diff=lfs merge=lfs -text
23
- *.wasm filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
28
- # Audio files - uncompressed
29
- *.pcm filter=lfs diff=lfs merge=lfs -text
30
- *.sam filter=lfs diff=lfs merge=lfs -text
31
- *.raw filter=lfs diff=lfs merge=lfs -text
32
- # Audio files - compressed
33
- *.aac filter=lfs diff=lfs merge=lfs -text
34
- *.flac filter=lfs diff=lfs merge=lfs -text
35
- *.mp3 filter=lfs diff=lfs merge=lfs -text
36
- *.ogg filter=lfs diff=lfs merge=lfs -text
37
- *.wav filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"v1.1": {"description": "VATEX is a large-scale multilingual video description dataset, which contains over 41,250 videos and 825,000 captions\nin both English and Chinese. VATEX is characterized by the following major unique properties.\nFirst, it contains both English and Chinese descriptions at scale, which can support many multilingual studies\nthat are constrained by monolingual datasets. Secondly, VATEX has a high number of clip-sentence pairs\nwith each video clip annotated with multiple unique sentences, and every caption is unique in\nthe whole corpus. Third, VATEX contains more comprehensive yet representative video content,\ncovering 600 human activities in total. Furthermore, both the English and Chinese corpora in\nVATEX are lexically richer and thus allow more natural and diverse caption generation.\n", "citation": "\n@InProceedings{Wang_2019_ICCV,\nauthor = {Wang, Xin and Wu, Jiawei and Chen, Junkun and Li, Lei and Wang, Yuan-Fang and Wang, William Yang},\ntitle = {VaTeX: A Large-Scale, High-Quality Multilingual Dataset for Video-and-Language Research},\nbooktitle = {The IEEE International Conference on Computer Vision (ICCV)},\nmonth = {October},\nyear = {2019}\n}\n", "homepage": "https://eric-xw.github.io/vatex-website/index.html", "license": "CC BY 4.0", "features": {"videoID": {"dtype": "string", "id": null, "_type": "Value"}, "path": {"dtype": "string", "id": null, "_type": "Value"}, "start": {"dtype": "int32", "id": null, "_type": "Value"}, "end": {"dtype": "int32", "id": null, "_type": "Value"}, "enCap": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "chCap": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "vatex", "config_name": "v1.1", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 40258579, "num_examples": 25991, "dataset_name": "vatex"}, "validation": {"name": "validation", "num_bytes": 4634770, "num_examples": 3000, "dataset_name": "vatex"}, "public_test": {"name": "public_test", "num_bytes": 5084679, "num_examples": 6000, "dataset_name": "vatex"}, "private_test": {"name": "private_test", "num_bytes": 491286, "num_examples": 6278, "dataset_name": "vatex"}}, "download_checksums": {"https://eric-xw.github.io/vatex-website/data/vatex_training_v1.0.json": {"num_bytes": 57319458, "checksum": "9a3b5f08e354d9543ef4f1ab004f9db9bc4e5da49d9692f0c8c6aa3bef9751c4"}, "https://eric-xw.github.io/vatex-website/data/vatex_validation_v1.0.json": {"num_bytes": 6598992, "checksum": "838212d8eead2e22c8838cf58530b94868f1a4905b8322b639212122c8033708"}, "https://eric-xw.github.io/vatex-website/data/vatex_public_test_english_v1.1.json": {"num_bytes": 4933553, "checksum": "0252a923ab08491db62c333e5e5439c1e1272e23a2b97bac8babf766d8b7e905"}, "https://eric-xw.github.io/vatex-website/data/vatex_private_test_without_annotations.json": {"num_bytes": 263676, "checksum": "79c6917d30ac77cf50fae60465da93e9c029b6e8c7d3baee20a1910adb75ddef"}, "https://eric-xw.github.io/vatex-website/data/vatex_public_test_without_annotations.json": {"num_bytes": 252000, "checksum": "889bfdb47238dda4403f3954bd04d38640b2ee4c7e7f596332fa896102837768"}}, "download_size": 69367679, "post_processing_size": null, "dataset_size": 50469314, "size_in_bytes": 119836993}, "v1.0": {"description": "VATEX is a large-scale multilingual video description dataset, which contains over 41,250 videos and 825,000 captions\nin both English and Chinese. VATEX is characterized by the following major unique properties.\nFirst, it contains both English and Chinese descriptions at scale, which can support many multilingual studies\nthat are constrained by monolingual datasets. Secondly, VATEX has a high number of clip-sentence pairs\nwith each video clip annotated with multiple unique sentences, and every caption is unique in\nthe whole corpus. Third, VATEX contains more comprehensive yet representative video content,\ncovering 600 human activities in total. Furthermore, both the English and Chinese corpora in\nVATEX are lexically richer and thus allow more natural and diverse caption generation.\n", "citation": "\n@InProceedings{Wang_2019_ICCV,\nauthor = {Wang, Xin and Wu, Jiawei and Chen, Junkun and Li, Lei and Wang, Yuan-Fang and Wang, William Yang},\ntitle = {VaTeX: A Large-Scale, High-Quality Multilingual Dataset for Video-and-Language Research},\nbooktitle = {The IEEE International Conference on Computer Vision (ICCV)},\nmonth = {October},\nyear = {2019}\n}\n", "homepage": "https://eric-xw.github.io/vatex-website/index.html", "license": "CC BY 4.0", "features": {"videoID": {"dtype": "string", "id": null, "_type": "Value"}, "path": {"dtype": "string", "id": null, "_type": "Value"}, "start": {"dtype": "int32", "id": null, "_type": "Value"}, "end": {"dtype": "int32", "id": null, "_type": "Value"}, "enCap": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "chCap": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "vatex", "config_name": "v1.0", "version": "0.0.0", "splits": {"train": {"name": "train", "num_bytes": 40258579, "num_examples": 25991, "dataset_name": "vatex"}, "validation": {"name": "validation", "num_bytes": 4634770, "num_examples": 3000, "dataset_name": "vatex"}, "public_test": {"name": "public_test", "num_bytes": 469532, "num_examples": 6000, "dataset_name": "vatex"}}, "download_checksums": {"https://eric-xw.github.io/vatex-website/data/vatex_training_v1.0.json": {"num_bytes": 57319458, "checksum": "9a3b5f08e354d9543ef4f1ab004f9db9bc4e5da49d9692f0c8c6aa3bef9751c4"}, "https://eric-xw.github.io/vatex-website/data/vatex_validation_v1.0.json": {"num_bytes": 6598992, "checksum": "838212d8eead2e22c8838cf58530b94868f1a4905b8322b639212122c8033708"}, "https://eric-xw.github.io/vatex-website/data/vatex_public_test_english_v1.1.json": {"num_bytes": 4933553, "checksum": "0252a923ab08491db62c333e5e5439c1e1272e23a2b97bac8babf766d8b7e905"}, "https://eric-xw.github.io/vatex-website/data/vatex_private_test_without_annotations.json": {"num_bytes": 263676, "checksum": "79c6917d30ac77cf50fae60465da93e9c029b6e8c7d3baee20a1910adb75ddef"}, "https://eric-xw.github.io/vatex-website/data/vatex_public_test_without_annotations.json": {"num_bytes": 252000, "checksum": "889bfdb47238dda4403f3954bd04d38640b2ee4c7e7f596332fa896102837768"}}, "download_size": 69367679, "post_processing_size": null, "dataset_size": 45362881, "size_in_bytes": 114730560}}
 
 
v1.0/vatex-public_test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b06a850fbf16c6af229ab7a24bed8a7f972602a2c8d1761e4f673ffb776d530a
3
+ size 209493
v1.0/vatex-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b29cb583d08ba0d2bae563a87c740e42382a98a7461a3744e4b0c8c972b3a9b
3
+ size 19099696
v1.0/vatex-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc0a1e5cd8023438d51cb3ac967f02d71084efce4de74ef5e59314115a69b9e3
3
+ size 2314716
v1.1/vatex-private_test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8105908d5955642a96dcf02f15783367868fde1541fe9929b00f1b193fb89d3
3
+ size 220764
v1.1/vatex-public_test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79b35bfe4e7afe862a1ad183bb753357f5eed8d3efb029ebe6acd3eab5ebc086
3
+ size 2625230
v1.1/vatex-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b29cb583d08ba0d2bae563a87c740e42382a98a7461a3744e4b0c8c972b3a9b
3
+ size 19099696
v1.1/vatex-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc0a1e5cd8023438d51cb3ac967f02d71084efce4de74ef5e59314115a69b9e3
3
+ size 2314716
vatex.py DELETED
@@ -1,161 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2022 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
-
16
- # Lint as: python3
17
- """VATEX is a large-Scale (826K captions for 41.3K video clips), multilingual (English and Chinese) dataset for video-and-language research.
18
- The dataset covers 600 fine-grained human activities."""
19
-
20
- import os
21
- import json
22
- import datasets
23
-
24
-
25
- _CITATION = """
26
- @InProceedings{Wang_2019_ICCV,
27
- author = {Wang, Xin and Wu, Jiawei and Chen, Junkun and Li, Lei and Wang, Yuan-Fang and Wang, William Yang},
28
- title = {VaTeX: A Large-Scale, High-Quality Multilingual Dataset for Video-and-Language Research},
29
- booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
30
- month = {October},
31
- year = {2019}
32
- }
33
- """
34
-
35
- _DESCRIPTION = """\
36
- VATEX is a large-scale multilingual video description dataset, which contains over 41,250 videos and 825,000 captions
37
- in both English and Chinese. VATEX is characterized by the following major unique properties.
38
- First, it contains both English and Chinese descriptions at scale, which can support many multilingual studies
39
- that are constrained by monolingual datasets. Secondly, VATEX has a high number of clip-sentence pairs
40
- with each video clip annotated with multiple unique sentences, and every caption is unique in
41
- the whole corpus. Third, VATEX contains more comprehensive yet representative video content,
42
- covering 600 human activities in total. Furthermore, both the English and Chinese corpora in
43
- VATEX are lexically richer and thus allow more natural and diverse caption generation.
44
- """
45
-
46
- _HOMEPAGE = "https://eric-xw.github.io/vatex-website/index.html"
47
-
48
- _LICENSE = "CC BY 4.0"
49
-
50
- _URL_BASE = "https://eric-xw.github.io/vatex-website/data/"
51
-
52
- _VARIANTS = [
53
- "v1.1",
54
- "v1.0",
55
- ]
56
-
57
- class Vatex(datasets.GeneratorBasedBuilder):
58
- """Vatex"""
59
-
60
- BUILDER_CONFIGS = [datasets.BuilderConfig(name) for name in _VARIANTS]
61
- DEFAULT_CONFIG_NAME = "v1.1"
62
-
63
- def _info(self):
64
- return datasets.DatasetInfo(
65
- description=_DESCRIPTION,
66
- features=datasets.Features(
67
- {
68
- "videoID": datasets.Value("string"),
69
- "path": datasets.Value("string"),
70
- "start": datasets.Value("int32"),
71
- "end": datasets.Value("int32"),
72
- "enCap": datasets.features.Sequence(datasets.Value("string")),
73
- "chCap": datasets.features.Sequence(datasets.Value("string")),
74
- }
75
- ),
76
- supervised_keys=None,
77
- homepage=_HOMEPAGE,
78
- citation=_CITATION,
79
- license=_LICENSE
80
- )
81
-
82
- def _split_generators(self, dl_manager):
83
- urls = {
84
- "v1.1": {
85
- "train": os.path.join(_URL_BASE, "vatex_training_v1.0.json"),
86
- "validation": os.path.join(_URL_BASE, "vatex_validation_v1.0.json"),
87
- "public_test": os.path.join(_URL_BASE, "vatex_public_test_english_v1.1.json"),
88
- "private_test": os.path.join(_URL_BASE, "vatex_private_test_without_annotations.json"),
89
- },
90
- "v1.0": {
91
- "train": os.path.join(_URL_BASE, "vatex_training_v1.0.json"),
92
- "validation": os.path.join(_URL_BASE, "vatex_validation_v1.0.json"),
93
- "public_test": os.path.join(_URL_BASE, "vatex_public_test_without_annotations.json"),
94
- },
95
- }
96
- # Download data for all splits once for all since they are tiny csv files
97
- files_path = dl_manager.download_and_extract(urls)
98
-
99
- splits = [
100
- datasets.SplitGenerator(
101
- name=datasets.Split.TRAIN,
102
- gen_kwargs={
103
- "filepath": files_path[self.config.name]["train"],
104
- "split": "train",
105
- },
106
- ),
107
- datasets.SplitGenerator(
108
- name=datasets.Split.VALIDATION,
109
- gen_kwargs={
110
- "filepath": files_path[self.config.name]["validation"],
111
- "split": "validation",
112
- },
113
- ),
114
- datasets.SplitGenerator(
115
- name=datasets.Split("public_test"),
116
- gen_kwargs={
117
- "filepath": files_path[self.config.name]["public_test"],
118
- "split": "public_test",
119
- },
120
- )
121
- ]
122
-
123
- if self.config.name == "v1.1":
124
- splits.append(
125
- datasets.SplitGenerator(
126
- name=datasets.Split("private_test"),
127
- gen_kwargs={
128
- "filepath": files_path[self.config.name]["private_test"],
129
- "split": "private_test",
130
- },
131
- )
132
- )
133
- return splits
134
-
135
- def _generate_examples(self, filepath, split):
136
- """This function returns the examples."""
137
- with open(filepath, encoding="utf-8") as json_file:
138
- annotations = json.load(json_file)
139
- for idx, instance in enumerate(annotations):
140
- videoID = instance["videoID"]
141
- splitted = videoID.split("_")
142
- start, end = int(splitted[-2]), int(splitted[-1])
143
- videoID = "_".join(splitted[:-2])
144
-
145
- if split in ["train", "validation"]:
146
- enCap = instance["enCap"]
147
- chCap = instance["chCap"]
148
- elif split == "public_test" and self.config.name == "v1.1":
149
- enCap = instance["enCap"]
150
- chCap = []
151
- else:
152
- enCap, chCap = [], []
153
-
154
- yield idx, {
155
- "videoID": videoID,
156
- "path": f"https://www.youtube.com/watch?v={videoID}",
157
- "start": start,
158
- "end": end,
159
- "enCap": enCap,
160
- "chCap": chCap,
161
- }