Datasets:
add train/val split
Browse files- sv-ident.py +12 -4
sv-ident.py
CHANGED
@@ -44,8 +44,9 @@ _HOMEPAGE = "https://github.com/vadis-project/sv-ident"
|
|
44 |
# _LICENSE = ""
|
45 |
|
46 |
_URLS = {
|
47 |
-
"train": "https://raw.githubusercontent.com/vadis-project/sv-ident/
|
48 |
-
"
|
|
|
49 |
}
|
50 |
|
51 |
|
@@ -78,12 +79,19 @@ class SVIdent(datasets.GeneratorBasedBuilder):
|
|
78 |
|
79 |
def _split_generators(self, dl_manager):
|
80 |
"""Returns SplitGenerators."""
|
81 |
-
|
|
|
82 |
return [
|
83 |
datasets.SplitGenerator(
|
84 |
name=datasets.Split.TRAIN,
|
85 |
gen_kwargs={
|
86 |
-
"filepath":
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
},
|
88 |
)
|
89 |
]
|
|
|
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 |
|
52 |
|
|
|
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 |
]
|