Datasets:
Update sv-ident.py
Browse files- 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": "
|
48 |
-
"
|
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 |
-
|
83 |
-
val_data_dir = dl_manager.download(_URLS["val"])
|
84 |
return [
|
85 |
datasets.SplitGenerator(
|
86 |
name=datasets.Split.TRAIN,
|
87 |
gen_kwargs={
|
88 |
-
"filepath":
|
89 |
},
|
90 |
),
|
91 |
datasets.SplitGenerator(
|
92 |
name=datasets.Split.VALIDATION,
|
93 |
gen_kwargs={
|
94 |
-
"filepath":
|
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 |
]
|