parquet-converter commited on
Commit
38a0a7c
·
1 Parent(s): cb56a5d

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,42 +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
38
- train_supervised_small.json filter=lfs diff=lfs merge=lfs -text
39
- train_unsupervised.json filter=lfs diff=lfs merge=lfs -text
40
- dev_data.json filter=lfs diff=lfs merge=lfs -text
41
- test_data.json filter=lfs diff=lfs merge=lfs -text
42
- train_supervised_large.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
TimeTravel.py DELETED
@@ -1,164 +0,0 @@
1
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- # TODO: Address all TODOs and remove all explanatory comments
15
- """TODO: Add a description here."""
16
-
17
-
18
- import csv
19
- import json
20
- import os
21
-
22
- import datasets
23
-
24
-
25
- # TODO: Add BibTeX citation
26
- # Find for instance the citation on arxiv or on the dataset repo/website
27
- _CITATION = """\
28
- @InProceedings{huggingface:dataset,
29
- title = {A great new dataset},
30
- author={huggingface, Inc.
31
- },
32
- year={2020}
33
- }
34
- """
35
-
36
- # TODO: Add description of the dataset here
37
- # You can copy an official description
38
- _DESCRIPTION = """\
39
- This new dataset is designed to solve this great NLP task and is crafted with a lot of care.
40
- """
41
-
42
- # TODO: Add a link to an official homepage for the dataset here
43
- _HOMEPAGE = ""
44
-
45
- # TODO: Add the licence for the dataset here if you can find it
46
- _LICENSE = ""
47
-
48
- # TODO: Add link to the official dataset URLs here
49
- # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
50
- # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
51
- _URLS = {
52
- "supervised_large": "train_supervised_large.json",
53
- "supervised_small": "train_supervised_small.json",
54
- "unsupervised": "train_unsupervised.json",
55
- "dev": "dev_data.json",
56
- "test": "test_data.json"
57
- }
58
-
59
-
60
- # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
61
- class TimeTravel(datasets.GeneratorBasedBuilder):
62
- """TODO: Short description of my dataset."""
63
-
64
- VERSION = datasets.Version("2.1.0")
65
-
66
- # This is an example of a dataset with multiple configurations.
67
- # If you don't want/need to define several sub-sets in your dataset,
68
- # just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
69
-
70
- # If you need to make complex sub-parts in the datasets with configurable options
71
- # You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
72
- # BUILDER_CONFIG_CLASS = MyBuilderConfig
73
-
74
- # You will be able to load one or the other configurations in the following list with
75
- # data = datasets.load_dataset('my_dataset', 'first_domain')
76
- # data = datasets.load_dataset('my_dataset', 'second_domain')
77
- BUILDER_CONFIGS = [
78
- datasets.BuilderConfig(name="supervised_large", version=VERSION, description="Supervised data set large"),
79
- datasets.BuilderConfig(name="supervised_small", version=VERSION, description="Supervised data set small"),
80
- datasets.BuilderConfig(name="unsupervised", version=VERSION, description="Unsupervised dataset"),
81
- ]
82
-
83
- DEFAULT_CONFIG_NAME = "unsupervised" # It's not mandatory to have a default configuration. Just use one if it make sense.
84
-
85
- def _info(self):
86
- # TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
87
- features = datasets.Features(
88
- {
89
- "story_id": datasets.Value("string"),
90
- "premise": datasets.Value("string"),
91
- "initial": datasets.Value("string"),
92
- "counterfactual": datasets.Value("string"),
93
- "original_ending": datasets.Value("string"),
94
- "edited_ending": datasets.Value("string")
95
- # These are the features of your dataset like images, labels ...
96
- }
97
- )
98
- return datasets.DatasetInfo(
99
- # This is the description that will appear on the datasets page.
100
- description=_DESCRIPTION,
101
- # This defines the different columns of the dataset and their types
102
- features=features, # Here we define them above because they are different between the two configurations
103
- # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and
104
- # specify them. They'll be used if as_supervised=True in builder.as_dataset.
105
- # supervised_keys=("sentence", "label"),
106
- # Homepage of the dataset for documentation
107
- homepage=_HOMEPAGE,
108
- # License for the dataset if available
109
- license=_LICENSE,
110
- # Citation for the dataset
111
- citation=_CITATION,
112
- )
113
-
114
- def _split_generators(self, dl_manager):
115
- # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
116
- # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
117
-
118
- # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
119
- # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
120
- # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
121
- #urls = _URLS[self.config.name]
122
- data_dir = dl_manager.download_and_extract(_URLS)
123
- return [
124
- datasets.SplitGenerator(
125
- name=datasets.Split.TRAIN,
126
- # These kwargs will be passed to _generate_examples
127
- gen_kwargs={
128
- "filepath": data_dir[self.config.name],
129
- "split": "train",
130
- },
131
- ),
132
- datasets.SplitGenerator(
133
- name=datasets.Split.TEST,
134
- # These kwargs will be passed to _generate_examples
135
- gen_kwargs={
136
- "filepath": data_dir['test'],
137
- "split": "test"
138
- },
139
- ),
140
- datasets.SplitGenerator(
141
- name=datasets.Split.VALIDATION,
142
- # These kwargs will be passed to _generate_examples
143
- gen_kwargs={
144
- "filepath": data_dir['dev'],
145
- "split": "dev",
146
- },
147
- ),
148
- ]
149
-
150
- # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
151
- def _generate_examples(self, filepath, split):
152
- # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
153
- # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
154
- with open(filepath, encoding="utf-8") as f:
155
- for key, row in enumerate(f):
156
- data = json.loads(row)
157
- yield key, {
158
- "story_id": data["story_id"],
159
- "premise": data["premise"],
160
- "initial": data["initial"],
161
- "counterfactual": data["counterfactual"],
162
- "original_ending": data["original_ending"],
163
- "edited_ending": data["edited_ending"],
164
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {".": {"description": "", "citation": "", "homepage": "", "license": "", "features": {"story_id": {"dtype": "string", "id": null, "_type": "Value"}, "premise": {"dtype": "string", "id": null, "_type": "Value"}, "initial": {"dtype": "string", "id": null, "_type": "Value"}, "counterfactual": {"dtype": "string", "id": null, "_type": "Value"}, "original_ending": {"dtype": "string", "id": null, "_type": "Value"}, "edited_ending": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "json", "config_name": ".", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 54456070, "num_examples": 141981, "dataset_name": "json"}, "test": {"name": "test", "num_bytes": 1429612, "num_examples": 1871, "dataset_name": "json"}, "validation": {"name": "validation", "num_bytes": 1437891, "num_examples": 1871, "dataset_name": "json"}}, "download_checksums": {"/home/wza/data/data_time_travel/original_dataset/TimeTravel/train_supervised_large.json": {"num_bytes": 16314889, "checksum": "42169edb01755b00fb16b3291fe749a3c258378786d0a5bbbfb7d63b1514fe88"}, "/home/wza/data/data_time_travel/original_dataset/TimeTravel/train_supervised_small.json": {"num_bytes": 9642013, "checksum": "63e2f26bbfb39dd56929c4c2683a71a0879c7abaabf00fd977e5d043ad400c44"}, "/home/wza/data/data_time_travel/original_dataset/TimeTravel/train_unsupervised.json": {"num_bytes": 41136891, "checksum": "825af5b146527e88a5722d5b34cbfdf396950f8439dc745bbac841ed132764bc"}, "/home/wza/data/data_time_travel/original_dataset/TimeTravel/test_data.json": {"num_bytes": 1596204, "checksum": "4bf7ea446f847d9d2de979543e16ebe0f906f9970acb661587c26a0a8a289655"}, "/home/wza/data/data_time_travel/original_dataset/TimeTravel/dev_data.json": {"num_bytes": 1604434, "checksum": "03497fe4b1afe5efd92815623de7b0282f2b04e2a1011119f9add3a159ff4368"}}, "download_size": 70294431, "post_processing_size": null, "dataset_size": 57323573, "size_in_bytes": 127618004}}
 
 
test_data.json → supervised_large/time_travel-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4bf7ea446f847d9d2de979543e16ebe0f906f9970acb661587c26a0a8a289655
3
- size 1596204
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61651295ee96d06476ff2084cf35ab49540f6c25d11d51a7cafde03fcb838e65
3
+ size 790512
train_supervised_small.json → supervised_large/time_travel-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:63e2f26bbfb39dd56929c4c2683a71a0879c7abaabf00fd977e5d043ad400c44
3
- size 9642013
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb45e3d008b6b9c807ececef52cd1f4fccb7dff0bea58ecb8fe43c5ec7cd1ee4
3
+ size 9373957
dev_data.json → supervised_large/time_travel-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:03497fe4b1afe5efd92815623de7b0282f2b04e2a1011119f9add3a159ff4368
3
- size 1604434
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:943935dd107629b35aebdf6d2365e54a586c876dafd12ae54a618d0877183047
3
+ size 797968
train_supervised_large.json → supervised_small/time_travel-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:42169edb01755b00fb16b3291fe749a3c258378786d0a5bbbfb7d63b1514fe88
3
- size 16314889
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61651295ee96d06476ff2084cf35ab49540f6c25d11d51a7cafde03fcb838e65
3
+ size 790512
supervised_small/time_travel-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c449e4d0c2642d3c1b3fde4a5db47cd46e1b51c781276301b8063931ea3bfaa
3
+ size 5552317
supervised_small/time_travel-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:943935dd107629b35aebdf6d2365e54a586c876dafd12ae54a618d0877183047
3
+ size 797968
train_unsupervised.json DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:825af5b146527e88a5722d5b34cbfdf396950f8439dc745bbac841ed132764bc
3
- size 41136891
 
 
 
 
unsupervised/time_travel-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61651295ee96d06476ff2084cf35ab49540f6c25d11d51a7cafde03fcb838e65
3
+ size 790512
unsupervised/time_travel-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cd90750fcfbd2b0f47c4c3b56f43d10af1e58f202aa9a2e868b93fea25390bc
3
+ size 22307108
unsupervised/time_travel-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:943935dd107629b35aebdf6d2365e54a586c876dafd12ae54a618d0877183047
3
+ size 797968