etrop commited on
Commit
890bc32
1 Parent(s): 1d742be
Files changed (1) hide show
  1. agro-nt-tasks.py +7 -4
agro-nt-tasks.py CHANGED
@@ -35,7 +35,7 @@ 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 = ['ID_arabidopsis_thaliana',
39
  'poly_a_oryza_sativa_indica_group',
40
  'poly_a_trifolium_pratense',
41
  'poly_a_medicago_truncatula',
@@ -57,14 +57,17 @@ class AgroNtTasksConfig(datasets.BuilderConfig):
57
  task (:obj:`str`): Task name.
58
  **kwargs: keyword arguments forwarded to super.
59
  """
 
 
 
 
 
60
  super().__init__(
61
  *args,
62
  name=f"{task_name}",
 
63
  **kwargs,
64
  )
65
- self.task= "_".join(task_name.split("_")[:2])
66
- self.name = "_".join(task_name.split("_")[2:])
67
- self.task_type = _TASK_NAME_TO_TYPE[self.task]
68
 
69
 
70
  class AgroNtTasks(datasets.GeneratorBasedBuilder):
 
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',
 
57
  task (:obj:`str`): Task name.
58
  **kwargs: keyword arguments forwarded to super.
59
  """
60
+
61
+ self.task = "_".join(task_name.split("_")[:2])
62
+ self.name = "_".join(task_name.split("_")[2:])
63
+ self.task_type = _TASK_NAME_TO_TYPE[self.task]
64
+
65
  super().__init__(
66
  *args,
67
  name=f"{task_name}",
68
+ data_dir=self.task
69
  **kwargs,
70
  )
 
 
 
71
 
72
 
73
  class AgroNtTasks(datasets.GeneratorBasedBuilder):