shjwudp commited on
Commit
66cc7f1
1 Parent(s): c36d17c

fix: Fix split generators

Browse files
Files changed (1) hide show
  1. shu.py +3 -6
shu.py CHANGED
@@ -44,13 +44,10 @@ class Shu(datasets.GeneratorBasedBuilder):
44
  )
45
 
46
  def _split_generators(self, dl_manager):
 
 
47
  return [
48
- datasets.SplitGenerator(
49
- name=datasets.Split.TRAIN,
50
- gen_kwargs={
51
- "filepath": "./books.jsonl.gz",
52
- }
53
- ),
54
  ]
55
 
56
  def _generate_examples(self, filepath):
 
44
  )
45
 
46
  def _split_generators(self, dl_manager):
47
+ train_text = dl_manager.download("books.jsonl.gz")
48
+
49
  return [
50
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_text}),
 
 
 
 
 
51
  ]
52
 
53
  def _generate_examples(self, filepath):