Datasets:
Tasks:
Text Classification
Sub-tasks:
natural-language-inference
Languages:
English
Size:
10K<n<100K
License:
Commit
•
ff17d2a
1
Parent(s):
e8ae5ab
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
- osdg_cd.py +0 -6
osdg_cd.py
CHANGED
@@ -21,7 +21,6 @@ import csv
|
|
21 |
import json
|
22 |
|
23 |
import datasets
|
24 |
-
from datasets.tasks import TextClassification
|
25 |
|
26 |
|
27 |
logger = datasets.logging.get_logger(__name__)
|
@@ -130,11 +129,6 @@ class OSDGCD(datasets.GeneratorBasedBuilder):
|
|
130 |
),
|
131 |
homepage=_HOMEPAGE,
|
132 |
citation=_CITATION,
|
133 |
-
task_templates=[
|
134 |
-
TextClassification(
|
135 |
-
text_column="text", label_column="label",
|
136 |
-
)
|
137 |
-
],
|
138 |
)
|
139 |
|
140 |
def _split_generators(self, dl_manager):
|
|
|
21 |
import json
|
22 |
|
23 |
import datasets
|
|
|
24 |
|
25 |
|
26 |
logger = datasets.logging.get_logger(__name__)
|
|
|
129 |
),
|
130 |
homepage=_HOMEPAGE,
|
131 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
132 |
)
|
133 |
|
134 |
def _split_generators(self, dl_manager):
|