Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
100K - 1M
License:
Zhangir Azerbayev
commited on
Commit
•
bd82fec
1
Parent(s):
0c1a6d5
fixed things
Browse files- proof-pile.py +6 -4
proof-pile.py
CHANGED
@@ -172,11 +172,13 @@ class ProofPile(datasets.GeneratorBasedBuilder):
|
|
172 |
train_paths = ["./math-dataset/train.jsonl.gz"]
|
173 |
val_paths = ["./math-dataset/val.jsonl.gz"]
|
174 |
elif self.config.name=="books":
|
175 |
-
|
176 |
-
|
|
|
177 |
elif self.config.name=="formal":
|
178 |
-
|
179 |
-
|
|
|
180 |
|
181 |
train_files = itertools.chain.from_iterable([dl_manager.download_and_extract(x)] for x in train_paths)
|
182 |
val_files = itertools.chain.from_iterable([dl_manager.download_and_extract(x)] for x in val_paths)
|
|
|
172 |
train_paths = ["./math-dataset/train.jsonl.gz"]
|
173 |
val_paths = ["./math-dataset/val.jsonl.gz"]
|
174 |
elif self.config.name=="books":
|
175 |
+
books = ["cam", "cring", "hott", "napkin", "stacks", "stein", "trench"]
|
176 |
+
train_paths = [os.path.join("./books", x + "_train.jsonl.gz") for x in books]
|
177 |
+
val_paths = [os.path.join("./books", x+"_val.jsonl.gz") for x for x in books]
|
178 |
elif self.config.name=="formal":
|
179 |
+
libs = ["afp", "coq", "hol", "lean", "mizar", "setmm"]
|
180 |
+
train_paths = [os.path.join("./formal", x + "_train.jsonl.gz") for x in libs]
|
181 |
+
val_paths = [os.path.join("./formal", x + "_val.jsonl.gz") for x libs]
|
182 |
|
183 |
train_files = itertools.chain.from_iterable([dl_manager.download_and_extract(x)] for x in train_paths)
|
184 |
val_files = itertools.chain.from_iterable([dl_manager.download_and_extract(x)] for x in val_paths)
|