fix: task names as "|" is not allowed in HF
Browse files- agro-nt-tasks.py +7 -7
agro-nt-tasks.py
CHANGED
@@ -35,12 +35,12 @@ predicting regulatory features, RNA processing sites, and gene expression values
|
|
35 |
# TODO: Add the licence for the dataset here if you can find it
|
36 |
_LICENSE = ""
|
37 |
|
38 |
-
_TASK_NAMES = ['poly_a
|
39 |
-
'poly_a
|
40 |
-
'poly_a
|
41 |
-
'poly_a
|
42 |
-
'poly_a
|
43 |
-
'poly_a
|
44 |
|
45 |
|
46 |
_TASK_NAME_TO_TYPE = {'poly_a':'binary',
|
@@ -62,7 +62,7 @@ class AgroNtTasksConfig(datasets.BuilderConfig):
|
|
62 |
name=f"{task_name}",
|
63 |
**kwargs,
|
64 |
)
|
65 |
-
self.task,self.name = task_name.split("
|
66 |
self.task_type = _TASK_NAME_TO_TYPE[self.task]
|
67 |
|
68 |
|
|
|
35 |
# TODO: Add the licence for the dataset here if you can find it
|
36 |
_LICENSE = ""
|
37 |
|
38 |
+
_TASK_NAMES = ['poly_a.arabidopsis_thaliana',
|
39 |
+
'poly_a.oryza_sativa_indica_group',
|
40 |
+
'poly_a.trifolium_pratense',
|
41 |
+
'poly_a.medicago_truncatula',
|
42 |
+
'poly_a.chlamydomonas_reinhardtii',
|
43 |
+
'poly_a.oryza_sativa_japonica_group']
|
44 |
|
45 |
|
46 |
_TASK_NAME_TO_TYPE = {'poly_a':'binary',
|
|
|
62 |
name=f"{task_name}",
|
63 |
**kwargs,
|
64 |
)
|
65 |
+
self.task,self.name = task_name.split(".")
|
66 |
self.task_type = _TASK_NAME_TO_TYPE[self.task]
|
67 |
|
68 |
|