Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K<n<100K
License:
Commit
•
2c484cf
1
Parent(s):
0223753
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
beer_reviews_label_drift_neg.py
CHANGED
@@ -21,7 +21,6 @@ import json
|
|
21 |
import os
|
22 |
|
23 |
import datasets
|
24 |
-
from datasets.tasks import TextClassification
|
25 |
|
26 |
|
27 |
|
@@ -121,7 +120,6 @@ class BeerReviewsLabelDriftNeg(datasets.GeneratorBasedBuilder):
|
|
121 |
license=_LICENSE,
|
122 |
# Citation for the dataset
|
123 |
citation=_CITATION,
|
124 |
-
task_templates=[TextClassification(text_column="text", label_column="label")],
|
125 |
)
|
126 |
|
127 |
def _split_generators(self, dl_manager):
|
|
|
21 |
import os
|
22 |
|
23 |
import datasets
|
|
|
24 |
|
25 |
|
26 |
|
|
|
120 |
license=_LICENSE,
|
121 |
# Citation for the dataset
|
122 |
citation=_CITATION,
|
|
|
123 |
)
|
124 |
|
125 |
def _split_generators(self, dl_manager):
|