Commit
•
afb4f2e
1
Parent(s):
ba3c75e
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
- twitter_sentiment.py +1 -4
twitter_sentiment.py
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
import csv
|
4 |
|
5 |
import datasets
|
6 |
-
|
7 |
|
8 |
_DESCRIPTION = """\
|
9 |
"""
|
@@ -33,9 +33,6 @@ class Custom(datasets.GeneratorBasedBuilder):
|
|
33 |
),
|
34 |
homepage="",
|
35 |
citation=_CITATION,
|
36 |
-
task_templates=[
|
37 |
-
TextClassification(text_column="text", label_column="label")
|
38 |
-
],
|
39 |
)
|
40 |
|
41 |
def _split_generators(self, dl_manager):
|
|
|
3 |
import csv
|
4 |
|
5 |
import datasets
|
6 |
+
|
7 |
|
8 |
_DESCRIPTION = """\
|
9 |
"""
|
|
|
33 |
),
|
34 |
homepage="",
|
35 |
citation=_CITATION,
|
|
|
|
|
|
|
36 |
)
|
37 |
|
38 |
def _split_generators(self, dl_manager):
|