Datasets:

Modalities:
Text
Size:
< 1K
ArXiv:
Libraries:
Datasets
License:
zhangir-azerbayev commited on
Commit
8d206a5
1 Parent(s): 1e80dfb

unbroke stuff

Browse files
Files changed (3) hide show
  1. proofnet.py +3 -4
  2. test.jsonl +0 -0
  3. test_loader.py +2 -2
proofnet.py CHANGED
@@ -16,7 +16,6 @@
16
  # Lint as: python3
17
 
18
  import json
19
-
20
  import datasets
21
 
22
  # TODO: Add description of the dataset here
@@ -73,7 +72,7 @@ class ProofNet(datasets.GeneratorBasedBuilder):
73
  ),
74
  )
75
 
76
- def _split_generators(self, dl_manager)
77
  return [
78
  datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": dl_manager.download("test.jsonl")}),
79
  datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath":dl_manager.download("valid.jsonl")})
@@ -82,8 +81,8 @@ class ProofNet(datasets.GeneratorBasedBuilder):
82
  def _generate_examples(self, filepath):
83
  """This function returns the examples in the raw (text) form."""
84
  key = 0
85
- with open(filepath, encoding="utf-8") as f:
86
  for line in f.readlines():
87
- instance = json.load(line)
88
  yield key, instance
89
  key += 1
 
16
  # Lint as: python3
17
 
18
  import json
 
19
  import datasets
20
 
21
  # TODO: Add description of the dataset here
 
72
  ),
73
  )
74
 
75
+ def _split_generators(self, dl_manager):
76
  return [
77
  datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": dl_manager.download("test.jsonl")}),
78
  datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath":dl_manager.download("valid.jsonl")})
 
81
  def _generate_examples(self, filepath):
82
  """This function returns the examples in the raw (text) form."""
83
  key = 0
84
+ with open(filepath) as f:
85
  for line in f.readlines():
86
+ instance = json.loads(line)
87
  yield key, instance
88
  key += 1
test.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
test_loader.py CHANGED
@@ -14,11 +14,11 @@ print(data["test"][0])
14
 
15
 
16
  print("looping through validation data...")
17
- for x in tqdm(data)["validation"]:
18
  pass
19
 
20
  print("looping through test data...")
21
- for x in tqdm(data)["test"]:
22
  pass
23
 
24
  print("finished!")
 
14
 
15
 
16
  print("looping through validation data...")
17
+ for x in tqdm(data["validation"]):
18
  pass
19
 
20
  print("looping through test data...")
21
+ for x in tqdm(data["test"]):
22
  pass
23
 
24
  print("finished!")