Commit
•
2380a55
1
Parent(s):
9388674
Remove deprecated tasks (#1)
Browse files- Remove deprecated tasks (7cbfa3cdbc657ddd424b0233792196ffbd267457)
amazon.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import csv
|
2 |
import datasets
|
3 |
-
from datasets.tasks import TextClassification
|
4 |
|
5 |
_TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/amazon/resolve/main/train.csv"
|
6 |
_TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/amazon/resolve/main/test.csv"
|
@@ -15,7 +14,6 @@ class mind(datasets.GeneratorBasedBuilder):
|
|
15 |
"label": datasets.features.ClassLabel(names=['0', '1', '2', '3', '4', '5']),
|
16 |
}
|
17 |
),
|
18 |
-
task_templates=[TextClassification(text_column="text", label_column="label")],
|
19 |
)
|
20 |
|
21 |
def _split_generators(self, dl_manager):
|
|
|
1 |
import csv
|
2 |
import datasets
|
|
|
3 |
|
4 |
_TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/amazon/resolve/main/train.csv"
|
5 |
_TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/amazon/resolve/main/test.csv"
|
|
|
14 |
"label": datasets.features.ClassLabel(names=['0', '1', '2', '3', '4', '5']),
|
15 |
}
|
16 |
),
|
|
|
17 |
)
|
18 |
|
19 |
def _split_generators(self, dl_manager):
|