Commit
·
acedd58
1
Parent(s):
31325e5
Update EpiClassify4GARD.py
Browse files- EpiClassify4GARD.py +2 -1
EpiClassify4GARD.py
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
import logging
|
20 |
import datasets
|
21 |
import csv
|
22 |
-
|
23 |
|
24 |
_CITATION = """\
|
25 |
*REDO*
|
@@ -90,6 +90,7 @@ class EpiSet(datasets.GeneratorBasedBuilder):
|
|
90 |
supervised_keys=None,
|
91 |
homepage="https://github.com/ncats/epi4GARD/tree/master/Epi4GARD#epi4gard",
|
92 |
citation=_CITATION,
|
|
|
93 |
)
|
94 |
|
95 |
def _split_generators(self, dl_manager):
|
|
|
19 |
import logging
|
20 |
import datasets
|
21 |
import csv
|
22 |
+
from datasets.tasks import TextClassification
|
23 |
|
24 |
_CITATION = """\
|
25 |
*REDO*
|
|
|
90 |
supervised_keys=None,
|
91 |
homepage="https://github.com/ncats/epi4GARD/tree/master/Epi4GARD#epi4gard",
|
92 |
citation=_CITATION,
|
93 |
+
task_templates=[TextClassification(text_column="text", label_column="label")],
|
94 |
)
|
95 |
|
96 |
def _split_generators(self, dl_manager):
|