Fraser-Greenlee commited on
Commit
997491c
1 Parent(s): d644695

small fixes

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. program_synthesis.py +2 -2
README.md CHANGED
@@ -12,6 +12,6 @@ datasets:
12
 
13
  Generated program synthesis datasets used to train [dreamcoder](https://github.com/ellisk42/ec).
14
 
15
- Currently just supports text & list data.
16
 
17
  ![](https://huggingface.co/datasets/Fraser/program-synthesis/resolve/main/img.png)
 
12
 
13
  Generated program synthesis datasets used to train [dreamcoder](https://github.com/ellisk42/ec).
14
 
15
+ Currently just supports text & list data.
16
 
17
  ![](https://huggingface.co/datasets/Fraser/program-synthesis/resolve/main/img.png)
program_synthesis.py CHANGED
@@ -33,7 +33,7 @@ class infIterator:
33
 
34
  def reset(self):
35
  tasks = self.make_mthd()
36
-
37
  rows = []
38
  for task in tasks:
39
  base = {
@@ -106,7 +106,7 @@ class ProgramSynthesis(datasets.GeneratorBasedBuilder):
106
 
107
  task_samples = {
108
  'text': infIterator(textMakeTasks),
109
- 'list': infIterator(listMakeTasks)
110
  }
111
  ks = list(task_samples.keys())
112
  for key in range(_MAX_STEPS):
 
33
 
34
  def reset(self):
35
  tasks = self.make_mthd()
36
+
37
  rows = []
38
  for task in tasks:
39
  base = {
 
106
 
107
  task_samples = {
108
  'text': infIterator(textMakeTasks),
109
+ 'list': infIterator(listMakeTasks),
110
  }
111
  ks = list(task_samples.keys())
112
  for key in range(_MAX_STEPS):