tarekziade commited on
Commit
6516639
1 Parent(s): a138ba1
test/data-00000-of-00001.arrow → data-00000-of-00001.arrow RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:31c4c67f8342722c31fa619646792abb6d183f3adfcdb70e97a4ac30af04dd53
3
- size 490072
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66219781f7913b76d3b1ec7c84dca09d83607ea4d617554ad544cd156dbc6c04
3
+ size 4832864
train/dataset_info.json → dataset_info.json RENAMED
@@ -3,7 +3,7 @@
3
  "citation": "",
4
  "config_name": "default",
5
  "dataset_name": "generator",
6
- "dataset_size": 4829151,
7
  "description": "",
8
  "download_checksums": {},
9
  "download_size": 0,
@@ -27,11 +27,11 @@
27
  },
28
  "homepage": "",
29
  "license": "",
30
- "size_in_bytes": 4829151,
31
  "splits": {
32
  "train": {
33
  "name": "train",
34
- "num_bytes": 4829151,
35
  "num_examples": 8000,
36
  "dataset_name": "generator"
37
  }
 
3
  "citation": "",
4
  "config_name": "default",
5
  "dataset_name": "generator",
6
+ "dataset_size": 4829371,
7
  "description": "",
8
  "download_checksums": {},
9
  "download_size": 0,
 
27
  },
28
  "homepage": "",
29
  "license": "",
30
+ "size_in_bytes": 4829371,
31
  "splits": {
32
  "train": {
33
  "name": "train",
34
+ "num_bytes": 4829371,
35
  "num_examples": 8000,
36
  "dataset_name": "generator"
37
  }
test/state.json → state.json RENAMED
@@ -4,7 +4,7 @@
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
- "_fingerprint": "a7220b23432d06d0",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,
 
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
+ "_fingerprint": "22f7d9d8af8dca0a",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,
test/dataset_info.json DELETED
@@ -1,45 +0,0 @@
1
- {
2
- "builder_name": "generator",
3
- "citation": "",
4
- "config_name": "default",
5
- "dataset_name": "generator",
6
- "dataset_size": 4829151,
7
- "description": "",
8
- "download_checksums": {},
9
- "download_size": 0,
10
- "features": {
11
- "title": {
12
- "dtype": "string",
13
- "_type": "Value"
14
- },
15
- "id": {
16
- "dtype": "int64",
17
- "_type": "Value"
18
- },
19
- "summary": {
20
- "dtype": "string",
21
- "_type": "Value"
22
- },
23
- "category": {
24
- "dtype": "string",
25
- "_type": "Value"
26
- }
27
- },
28
- "homepage": "",
29
- "license": "",
30
- "size_in_bytes": 4829151,
31
- "splits": {
32
- "train": {
33
- "name": "train",
34
- "num_bytes": 4829151,
35
- "num_examples": 8000,
36
- "dataset_name": "generator"
37
- }
38
- },
39
- "version": {
40
- "version_str": "0.0.0",
41
- "major": 0,
42
- "minor": 0,
43
- "patch": 0
44
- }
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
train/data-00000-of-00001.arrow DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ea17a70bb007568d6366aaa922932d941d416675e9e5607b6c5d7e8516c77a19
3
- size 4343520
 
 
 
 
train/state.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "_data_files": [
3
- {
4
- "filename": "data-00000-of-00001.arrow"
5
- }
6
- ],
7
- "_fingerprint": "1f79cc301fa8a535",
8
- "_format_columns": null,
9
- "_format_kwargs": {},
10
- "_format_type": null,
11
- "_output_all_columns": false,
12
- "_split": "train"
13
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wikiextract.py CHANGED
@@ -186,12 +186,13 @@ def main():
186
 
187
  dataset = Dataset.from_generator(gen)
188
 
189
- train_test_split = dataset.train_test_split(test_size=0.1)
190
- dataset_dict = DatasetDict(
191
- {"train": train_test_split["train"], "test": train_test_split["test"]}
192
- )
193
 
194
- dataset_dict.save_to_disk(os.path.dirname(__file__))
 
195
 
196
 
197
  if __name__ == "__main__":
 
186
 
187
  dataset = Dataset.from_generator(gen)
188
 
189
+ # train_test_split = dataset.train_test_split(test_size=0.1)
190
+ # dataset_dict = DatasetDict(
191
+ # {"train": train_test_split["train"], "test": train_test_split["test"]}
192
+ # )
193
 
194
+ # dataset_dict.save_to_disk(os.path.dirname(__file__))
195
+ dataset.save_to_disk(os.path.dirname(__file__))
196
 
197
 
198
  if __name__ == "__main__":