Datasets:

e-tornike commited on
Commit
0e1d0b6
1 Parent(s): 60bd62c

Update sv-ident.py

Browse files
Files changed (1) hide show
  1. sv-ident.py +6 -6
sv-ident.py CHANGED
@@ -43,9 +43,10 @@ _HOMEPAGE = "https://github.com/vadis-project/sv-ident"
43
  # TODO: Add the licence
44
  # _LICENSE = ""
45
 
 
46
  _URLS = {
47
- "train": "https://raw.githubusercontent.com/vadis-project/sv-ident/a8e71bba570f628c460e2b542d4cc645e4eb7d03/data/train/train.tsv",
48
- "val": "https://raw.githubusercontent.com/vadis-project/sv-ident/a8e71bba570f628c460e2b542d4cc645e4eb7d03/data/train/val.tsv",
49
  # "trial": "https://github.com/vadis-project/sv-ident/tree/9962c3274444ce84c59d42e2a6f8c0958ed15a26/data/trial",
50
  }
51
 
@@ -79,19 +80,18 @@ class SVIdent(datasets.GeneratorBasedBuilder):
79
 
80
  def _split_generators(self, dl_manager):
81
  """Returns SplitGenerators."""
82
- train_data_dir = dl_manager.download(_URLS["train"])
83
- val_data_dir = dl_manager.download(_URLS["val"])
84
  return [
85
  datasets.SplitGenerator(
86
  name=datasets.Split.TRAIN,
87
  gen_kwargs={
88
- "filepath": train_data_dir,
89
  },
90
  ),
91
  datasets.SplitGenerator(
92
  name=datasets.Split.VALIDATION,
93
  gen_kwargs={
94
- "filepath": val_data_dir,
95
  },
96
  )
97
  ]
 
43
  # TODO: Add the licence
44
  # _LICENSE = ""
45
 
46
+ _URL = "https://raw.githubusercontent.com/vadis-project/sv-ident/a8e71bba570f628c460e2b542d4cc645e4eb7d03/data/train/"
47
  _URLS = {
48
+ "train": _URL+"train.tsv",
49
+ "dev": _URL+"val.tsv",
50
  # "trial": "https://github.com/vadis-project/sv-ident/tree/9962c3274444ce84c59d42e2a6f8c0958ed15a26/data/trial",
51
  }
52
 
 
80
 
81
  def _split_generators(self, dl_manager):
82
  """Returns SplitGenerators."""
83
+ downloaded_files = dl_manager.download(_URLS)
 
84
  return [
85
  datasets.SplitGenerator(
86
  name=datasets.Split.TRAIN,
87
  gen_kwargs={
88
+ "filepath": downloaded_files["train"],
89
  },
90
  ),
91
  datasets.SplitGenerator(
92
  name=datasets.Split.VALIDATION,
93
  gen_kwargs={
94
+ "filepath": downloaded_files["dev"],
95
  },
96
  )
97
  ]