Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
Zhangir Azerbayev commited on
Commit
5473bd4
·
1 Parent(s): 187fe1c

fixed things?

Browse files
Files changed (1) hide show
  1. proof-pile.py +3 -2
proof-pile.py CHANGED
@@ -117,8 +117,6 @@ class ProofPile(datasets.GeneratorBasedBuilder):
117
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
118
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
119
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
120
- with open("splits.json") as f:
121
- splits = json.load(f)
122
 
123
  self.archived_configs = ["arxiv", "stack-exchange", "math-dataset", "wiki"]
124
 
@@ -165,6 +163,9 @@ class ProofPile(datasets.GeneratorBasedBuilder):
165
  ),
166
  ]
167
  else:
 
 
 
168
  return [
169
  datasets.SplitGenerator(
170
  name=datasets.Split.TRAIN,
 
117
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
118
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
119
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
 
 
120
 
121
  self.archived_configs = ["arxiv", "stack-exchange", "math-dataset", "wiki"]
122
 
 
163
  ),
164
  ]
165
  else:
166
+ with open("splits.json") as f:
167
+ splits = json.load(f)
168
+
169
  return [
170
  datasets.SplitGenerator(
171
  name=datasets.Split.TRAIN,