Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
pandas
License:
albertvillanova HF staff commited on
Commit
3c8018f
1 Parent(s): 48f281a

Refactor download (#4384)

Browse files

* Refactor download

* Fix textvqa dataset

* Move download module one level up

* Fix test mock fsspec

* Fix docs

* Fix import of DownloadConfig

* Refactor mock_download_manager

* Refactor DownloadConfig

* Fix docs

* Add sections to docs of builder classes

* Use relative imports

* Fix path

* Fix import

Commit from https://github.com/huggingface/datasets/commit/82258b47dcf6e12a9b9f2aec68ea18fb3fd3d9fc

Files changed (1) hide show
  1. americas_nli.py +1 -2
americas_nli.py CHANGED
@@ -18,7 +18,6 @@
18
  import csv
19
 
20
  import datasets
21
- from datasets.utils.download_manager import DownloadManager
22
 
23
 
24
  _CITATION = """
@@ -133,7 +132,7 @@ class AmericasNLI(datasets.GeneratorBasedBuilder):
133
  citation=_CITATION,
134
  )
135
 
136
- def _split_generators(self, dl_manager: DownloadManager):
137
  dl_paths = dl_manager.download(
138
  {
139
  "dev_data": _DEV_DATA_URL,
 
18
  import csv
19
 
20
  import datasets
 
21
 
22
 
23
  _CITATION = """
 
132
  citation=_CITATION,
133
  )
134
 
135
+ def _split_generators(self, dl_manager):
136
  dl_paths = dl_manager.download(
137
  {
138
  "dev_data": _DEV_DATA_URL,