Theoreticallyhugo commited on
Commit
873d6ed
1 Parent(s): 9e76666

fixed error regarding split handling

Browse files
Files changed (1) hide show
  1. essays_SuG.py +2 -2
essays_SuG.py CHANGED
@@ -329,7 +329,7 @@ class Fancy(datasets.GeneratorBasedBuilder):
329
  },
330
  ),
331
  ]
332
- elif len(validate) == 0:
333
  return [
334
  datasets.SplitGenerator(
335
  name=datasets.Split.TRAIN,
@@ -348,7 +348,7 @@ class Fancy(datasets.GeneratorBasedBuilder):
348
  },
349
  ),
350
  ]
351
- elif len(test) == 0:
352
  return [
353
  datasets.SplitGenerator(
354
  name=datasets.Split.TRAIN,
 
329
  },
330
  ),
331
  ]
332
+ elif len(test) > 0:
333
  return [
334
  datasets.SplitGenerator(
335
  name=datasets.Split.TRAIN,
 
348
  },
349
  ),
350
  ]
351
+ elif len(validate) > 0:
352
  return [
353
  datasets.SplitGenerator(
354
  name=datasets.Split.TRAIN,