Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
Zhangir Azerbayev commited on
Commit
bd82fec
1 Parent(s): 0c1a6d5

fixed things

Browse files
Files changed (1) hide show
  1. 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
- train_paths = [os.path.join("./books", x) for x in os.listdir("./books") if "train.jsonl.gz" in x]
176
- val_paths = [os.path.join("./books", x) for x in os.listdir("./books") if "val.jsonl.gz" in x]
 
177
  elif self.config.name=="formal":
178
- train_paths = [os.path.join("./formal", x) for x in os.listdir("./formal") if "train.jsonl.gz" in x]
179
- val_paths = [os.path.join("./formal", x) for x in os.listdir("./formal") if "val.jsonl.gz" in x]
 
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)