fix: Fix split generators
Browse files
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):
|