Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Commit
•
62985b3
1
Parent(s):
83a7773
Add deprecation warning to dataset script
Browse files- banking77.py +5 -0
banking77.py
CHANGED
@@ -16,6 +16,7 @@
|
|
16 |
|
17 |
|
18 |
import csv
|
|
|
19 |
|
20 |
import datasets
|
21 |
from datasets.tasks import TextClassification
|
@@ -55,6 +56,10 @@ class Banking77(datasets.GeneratorBasedBuilder):
|
|
55 |
VERSION = datasets.Version("1.1.0")
|
56 |
|
57 |
def _info(self):
|
|
|
|
|
|
|
|
|
58 |
features = datasets.Features(
|
59 |
{
|
60 |
"text": datasets.Value("string"),
|
|
|
16 |
|
17 |
|
18 |
import csv
|
19 |
+
import warnings
|
20 |
|
21 |
import datasets
|
22 |
from datasets.tasks import TextClassification
|
|
|
56 |
VERSION = datasets.Version("1.1.0")
|
57 |
|
58 |
def _info(self):
|
59 |
+
warnings.warn(
|
60 |
+
"Dataset 'banking77' is deprecated and will be deleted. Use 'PolyAI/banking77' instead.",
|
61 |
+
FutureWarning,
|
62 |
+
)
|
63 |
features = datasets.Features(
|
64 |
{
|
65 |
"text": datasets.Value("string"),
|