Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
English
Size:
1K<n<10K
License:
Commit
•
a32034e
1
Parent(s):
ababe4a
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
- tsl_news.py +0 -4
tsl_news.py
CHANGED
@@ -18,7 +18,6 @@
|
|
18 |
import csv
|
19 |
|
20 |
import datasets
|
21 |
-
from datasets.tasks import TextClassification
|
22 |
|
23 |
logger = datasets.logging.get_logger(__name__)
|
24 |
|
@@ -97,9 +96,6 @@ class TSLNews(datasets.GeneratorBasedBuilder):
|
|
97 |
homepage=_HOMEPAGE,
|
98 |
license=_LICENSE,
|
99 |
citation=_CITATION,
|
100 |
-
task_templates=[
|
101 |
-
TextClassification(text_column="title", label_column="label")
|
102 |
-
],
|
103 |
)
|
104 |
|
105 |
def _split_generators(self, dl_manager):
|
|
|
18 |
import csv
|
19 |
|
20 |
import datasets
|
|
|
21 |
|
22 |
logger = datasets.logging.get_logger(__name__)
|
23 |
|
|
|
96 |
homepage=_HOMEPAGE,
|
97 |
license=_LICENSE,
|
98 |
citation=_CITATION,
|
|
|
|
|
|
|
99 |
)
|
100 |
|
101 |
def _split_generators(self, dl_manager):
|