Alexander Black commited on
Commit
465a251
1 Parent(s): 99bbb2a

script wip

Browse files
Files changed (1) hide show
  1. ANAKIN.py +3 -8
ANAKIN.py CHANGED
@@ -137,26 +137,21 @@ class Anakin(datasets.GeneratorBasedBuilder):
137
  name=datasets.Split.TRAIN,
138
  # These kwargs will be passed to _generate_examples
139
  gen_kwargs={
140
- "filepath": data_dir,
141
- "split": "train",
142
- "ids": ids[:342],
143
  },
144
  ),
145
  datasets.SplitGenerator(
146
  name=datasets.Split.VALIDATION,
147
  # These kwargs will be passed to _generate_examples
148
  gen_kwargs={
149
- "filepath": data_dir,
150
- "split": "dev",
151
- "ids": ids[342:],
152
  },
153
  ),
154
  datasets.SplitGenerator(
155
  name=datasets.Split.TEST,
156
  # These kwargs will be passed to _generate_examples
157
  gen_kwargs={
158
- "filepath": os.path.join(data_dir, "metadata.csv"),
159
- "split": "test",
160
  },
161
  ),
162
  ]
 
137
  name=datasets.Split.TRAIN,
138
  # These kwargs will be passed to _generate_examples
139
  gen_kwargs={
140
+ "files": data_dir,
 
 
141
  },
142
  ),
143
  datasets.SplitGenerator(
144
  name=datasets.Split.VALIDATION,
145
  # These kwargs will be passed to _generate_examples
146
  gen_kwargs={
147
+ "files": data_dir,
 
 
148
  },
149
  ),
150
  datasets.SplitGenerator(
151
  name=datasets.Split.TEST,
152
  # These kwargs will be passed to _generate_examples
153
  gen_kwargs={
154
+ "files": os.path.join(data_dir, "metadata.csv"),
 
155
  },
156
  ),
157
  ]