Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Do not extract CSV data files
#3
by
albertvillanova
HF staff
- opened
- banking77.py +2 -2
banking77.py
CHANGED
@@ -153,8 +153,8 @@ class Banking77(datasets.GeneratorBasedBuilder):
|
|
153 |
|
154 |
def _split_generators(self, dl_manager):
|
155 |
"""Returns SplitGenerators."""
|
156 |
-
train_path = dl_manager.
|
157 |
-
test_path = dl_manager.
|
158 |
return [
|
159 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
|
160 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
|
|
|
153 |
|
154 |
def _split_generators(self, dl_manager):
|
155 |
"""Returns SplitGenerators."""
|
156 |
+
train_path = dl_manager.download(_TRAIN_DOWNLOAD_URL)
|
157 |
+
test_path = dl_manager.download(_TEST_DOWNLOAD_URL)
|
158 |
return [
|
159 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
|
160 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
|