Convert dataset to Parquet

#1
by albertvillanova HF staff - opened
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ - config_name: first
4
+ features:
5
+ - name: text
6
+ dtype: string
7
+ splits:
8
+ - name: train
9
+ num_bytes: 55
10
+ num_examples: 5
11
+ download_size: 790
12
+ dataset_size: 55
13
+ - config_name: second
14
+ features:
15
+ - name: text
16
+ dtype: string
17
+ splits:
18
+ - name: train
19
+ num_bytes: 60
20
+ num_examples: 5
21
+ download_size: 798
22
+ dataset_size: 60
23
+ configs:
24
+ - config_name: first
25
+ data_files:
26
+ - split: train
27
+ path: first/train-*
28
+ default: true
29
+ - config_name: second
30
+ data_files:
31
+ - split: train
32
+ path: second/train-*
33
+ ---
first/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b122eba35abd014d5f0228bb44e633703a0f36bdb5f2e7526f68e402e7b0e03
3
+ size 790
second/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8ecdee301702e317ab897e234150b8fe2430411248752a47367cf9b51d18f2d
3
+ size 798
tmp-two-configs.py DELETED
@@ -1,21 +0,0 @@
1
- import datasets
2
-
3
-
4
- class NewDataset(datasets.GeneratorBasedBuilder):
5
- BUILDER_CONFIGS = [
6
- datasets.BuilderConfig(name="first"),
7
- datasets.BuilderConfig(name="second"),
8
- ]
9
- DEFAULT_CONFIG_NAME = "first"
10
-
11
- def _info(self):
12
- return datasets.DatasetInfo(
13
- features=datasets.Features({"text": datasets.Value("string")}),
14
- )
15
-
16
- def _split_generators(self, dl_manager):
17
- return [datasets.SplitGenerator(name=datasets.Split.TRAIN)]
18
-
19
- def _generate_examples(self):
20
- for key in range(5):
21
- yield key, {"text": f"{self.config.name}-{key}"}