Commit
•
4025147
1
Parent(s):
4feb502
Remove deprecated tasks (#1)
Browse files- Remove deprecated tasks (659892c416474f66e94d4e1cc5be7fc276acf472)
demo2.py
CHANGED
@@ -19,7 +19,6 @@ import csv
|
|
19 |
import json
|
20 |
|
21 |
import datasets
|
22 |
-
from datasets import TextClassification
|
23 |
|
24 |
|
25 |
logger = datasets.logging.get_logger(__name__)
|
@@ -83,11 +82,6 @@ class Demo2(datasets.GeneratorBasedBuilder):
|
|
83 |
supervised_keys=None,
|
84 |
homepage="https://rajpurkar.github.io/SQuAD-explorer/",
|
85 |
citation=_CITATION,
|
86 |
-
task_templates=[
|
87 |
-
TextClassification(
|
88 |
-
text_column="text", label_column="label"
|
89 |
-
)
|
90 |
-
],
|
91 |
)
|
92 |
|
93 |
def _split_generators(self, dl_manager):
|
|
|
19 |
import json
|
20 |
|
21 |
import datasets
|
|
|
22 |
|
23 |
|
24 |
logger = datasets.logging.get_logger(__name__)
|
|
|
82 |
supervised_keys=None,
|
83 |
homepage="https://rajpurkar.github.io/SQuAD-explorer/",
|
84 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
85 |
)
|
86 |
|
87 |
def _split_generators(self, dl_manager):
|