Remove deprecated tasks
Browse filesThis dataset uses `tasks`, which are deprecated and will raise an error after the next major release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999
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):
|