Commit
•
afa89f1
1
Parent(s):
4699c8b
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
- metrecv2.py +0 -2
metrecv2.py
CHANGED
@@ -20,7 +20,6 @@
|
|
20 |
import os
|
21 |
|
22 |
import datasets
|
23 |
-
from datasets.tasks import TextClassification
|
24 |
|
25 |
|
26 |
_DESCRIPTION = """\
|
@@ -85,7 +84,6 @@ class MetRecV2(datasets.GeneratorBasedBuilder):
|
|
85 |
supervised_keys=None,
|
86 |
homepage="",
|
87 |
citation=_CITATION,
|
88 |
-
task_templates=[TextClassification(text_column="text", label_column="label")],
|
89 |
)
|
90 |
|
91 |
def _vocab_text_gen(self, archive):
|
|
|
20 |
import os
|
21 |
|
22 |
import datasets
|
|
|
23 |
|
24 |
|
25 |
_DESCRIPTION = """\
|
|
|
84 |
supervised_keys=None,
|
85 |
homepage="",
|
86 |
citation=_CITATION,
|
|
|
87 |
)
|
88 |
|
89 |
def _vocab_text_gen(self, archive):
|