Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
Zhangir Azerbayev commited on
Commit
4ca8ed0
1 Parent(s): a19247b
Files changed (2) hide show
  1. .gitignore +1 -0
  2. proof-pile.py +4 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ *.lock
proof-pile.py CHANGED
@@ -145,6 +145,10 @@ class ProofPile(datasets.GeneratorBasedBuilder):
145
 
146
  train_files = itertools.chain.from_iterable(dl_manager.iter_archive(x) for x in train_paths)
147
  val_files = itertools.chain.from_iterable(dl_manager.iter_archive(x) for x in val_paths)
 
 
 
 
148
 
149
  return [
150
  datasets.SplitGenerator(
 
145
 
146
  train_files = itertools.chain.from_iterable(dl_manager.iter_archive(x) for x in train_paths)
147
  val_files = itertools.chain.from_iterable(dl_manager.iter_archive(x) for x in val_paths)
148
+
149
+ if self.config.name=="math-dataset":
150
+ train_files = dl_manager.download_and_extract("math-dataset/train.tar.gz")
151
+ val_files = dl_manager.download_and_extract("math-datset/val.tar.gz")
152
 
153
  return [
154
  datasets.SplitGenerator(