albertvillanova HF staff commited on
Commit
0663f3a
·
verified ·
1 Parent(s): c52fa34

Update loading script

Browse files
Files changed (1) hide show
  1. tapaco.py +4 -5
tapaco.py CHANGED
@@ -54,9 +54,8 @@ _HOMEPAGE = "https://zenodo.org/record/3707949#.X9Dh0cYza3I"
54
  _LICENSE = "Creative Commons Attribution 2.0 Generic"
55
 
56
 
57
- _URLs = {
58
- "train": "https://zenodo.org/record/3707949/files/tapaco_v1.0.zip?download=1",
59
- }
60
 
61
  _VERSION = "1.0.0"
62
  _LANGUAGES = {
@@ -190,11 +189,11 @@ class Tapaco(datasets.GeneratorBasedBuilder):
190
 
191
  def _split_generators(self, dl_manager):
192
  """Returns SplitGenerators."""
193
- data_dir = dl_manager.download_and_extract(_URLs)
194
  return [
195
  datasets.SplitGenerator(
196
  name=datasets.Split.TRAIN,
197
- gen_kwargs={"data_dir": data_dir["train"]},
198
  ),
199
  ]
200
 
 
54
  _LICENSE = "Creative Commons Attribution 2.0 Generic"
55
 
56
 
57
+ # Original data: "https://zenodo.org/record/3707949/files/tapaco_v1.0.zip?download=1"
58
+ _URL = "data/tapaco_v1.0.zip"
 
59
 
60
  _VERSION = "1.0.0"
61
  _LANGUAGES = {
 
189
 
190
  def _split_generators(self, dl_manager):
191
  """Returns SplitGenerators."""
192
+ data_dir = dl_manager.download_and_extract(_URL)
193
  return [
194
  datasets.SplitGenerator(
195
  name=datasets.Split.TRAIN,
196
+ gen_kwargs={"data_dir": data_dir},
197
  ),
198
  ]
199