Datasets:
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
- EnglishNLPDataset.py +1 -2
EnglishNLPDataset.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
|
| 4 |
import csv
|
| 5 |
import datasets
|
| 6 |
-
|
| 7 |
|
| 8 |
_CITATION = """\
|
| 9 |
----EnglishNLPDataset----
|
|
@@ -53,7 +53,6 @@ class EnglishNLPDataset(datasets.GeneratorBasedBuilder):
|
|
| 53 |
# Homepage of the dataset for documentation
|
| 54 |
homepage="https://github.com/BihterDass/EnglishTextClassificationDataset",
|
| 55 |
citation=_CITATION,
|
| 56 |
-
task_templates=[TextClassification(text_column="text", label_column="label")],
|
| 57 |
)
|
| 58 |
|
| 59 |
def _split_generators(self, dl_manager):
|
|
|
|
| 3 |
|
| 4 |
import csv
|
| 5 |
import datasets
|
| 6 |
+
|
| 7 |
|
| 8 |
_CITATION = """\
|
| 9 |
----EnglishNLPDataset----
|
|
|
|
| 53 |
# Homepage of the dataset for documentation
|
| 54 |
homepage="https://github.com/BihterDass/EnglishTextClassificationDataset",
|
| 55 |
citation=_CITATION,
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
def _split_generators(self, dl_manager):
|