Datasets:
Convert dataset to Parquet
#6
by
lhoestq
HF Staff
- opened
- README.md +101 -1
- banking77.py +0 -169
- data/test-00000-of-00001.parquet +3 -0
- data/train-00000-of-00001.parquet +3 -0
- dataset_infos.json +0 -1
README.md
CHANGED
@@ -20,8 +20,108 @@ task_categories:
|
|
20 |
task_ids:
|
21 |
- intent-classification
|
22 |
- multi-class-classification
|
23 |
-
paperswithcode_id: null
|
24 |
pretty_name: BANKING77
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
---
|
26 |
|
27 |
# Dataset Card for BANKING77
|
|
|
20 |
task_ids:
|
21 |
- intent-classification
|
22 |
- multi-class-classification
|
|
|
23 |
pretty_name: BANKING77
|
24 |
+
dataset_info:
|
25 |
+
features:
|
26 |
+
- name: text
|
27 |
+
dtype: string
|
28 |
+
- name: label
|
29 |
+
dtype:
|
30 |
+
class_label:
|
31 |
+
names:
|
32 |
+
'0': activate_my_card
|
33 |
+
'1': age_limit
|
34 |
+
'2': apple_pay_or_google_pay
|
35 |
+
'3': atm_support
|
36 |
+
'4': automatic_top_up
|
37 |
+
'5': balance_not_updated_after_bank_transfer
|
38 |
+
'6': balance_not_updated_after_cheque_or_cash_deposit
|
39 |
+
'7': beneficiary_not_allowed
|
40 |
+
'8': cancel_transfer
|
41 |
+
'9': card_about_to_expire
|
42 |
+
'10': card_acceptance
|
43 |
+
'11': card_arrival
|
44 |
+
'12': card_delivery_estimate
|
45 |
+
'13': card_linking
|
46 |
+
'14': card_not_working
|
47 |
+
'15': card_payment_fee_charged
|
48 |
+
'16': card_payment_not_recognised
|
49 |
+
'17': card_payment_wrong_exchange_rate
|
50 |
+
'18': card_swallowed
|
51 |
+
'19': cash_withdrawal_charge
|
52 |
+
'20': cash_withdrawal_not_recognised
|
53 |
+
'21': change_pin
|
54 |
+
'22': compromised_card
|
55 |
+
'23': contactless_not_working
|
56 |
+
'24': country_support
|
57 |
+
'25': declined_card_payment
|
58 |
+
'26': declined_cash_withdrawal
|
59 |
+
'27': declined_transfer
|
60 |
+
'28': direct_debit_payment_not_recognised
|
61 |
+
'29': disposable_card_limits
|
62 |
+
'30': edit_personal_details
|
63 |
+
'31': exchange_charge
|
64 |
+
'32': exchange_rate
|
65 |
+
'33': exchange_via_app
|
66 |
+
'34': extra_charge_on_statement
|
67 |
+
'35': failed_transfer
|
68 |
+
'36': fiat_currency_support
|
69 |
+
'37': get_disposable_virtual_card
|
70 |
+
'38': get_physical_card
|
71 |
+
'39': getting_spare_card
|
72 |
+
'40': getting_virtual_card
|
73 |
+
'41': lost_or_stolen_card
|
74 |
+
'42': lost_or_stolen_phone
|
75 |
+
'43': order_physical_card
|
76 |
+
'44': passcode_forgotten
|
77 |
+
'45': pending_card_payment
|
78 |
+
'46': pending_cash_withdrawal
|
79 |
+
'47': pending_top_up
|
80 |
+
'48': pending_transfer
|
81 |
+
'49': pin_blocked
|
82 |
+
'50': receiving_money
|
83 |
+
'51': Refund_not_showing_up
|
84 |
+
'52': request_refund
|
85 |
+
'53': reverted_card_payment?
|
86 |
+
'54': supported_cards_and_currencies
|
87 |
+
'55': terminate_account
|
88 |
+
'56': top_up_by_bank_transfer_charge
|
89 |
+
'57': top_up_by_card_charge
|
90 |
+
'58': top_up_by_cash_or_cheque
|
91 |
+
'59': top_up_failed
|
92 |
+
'60': top_up_limits
|
93 |
+
'61': top_up_reverted
|
94 |
+
'62': topping_up_by_card
|
95 |
+
'63': transaction_charged_twice
|
96 |
+
'64': transfer_fee_charged
|
97 |
+
'65': transfer_into_account
|
98 |
+
'66': transfer_not_received_by_recipient
|
99 |
+
'67': transfer_timing
|
100 |
+
'68': unable_to_verify_identity
|
101 |
+
'69': verify_my_identity
|
102 |
+
'70': verify_source_of_funds
|
103 |
+
'71': verify_top_up
|
104 |
+
'72': virtual_card_not_working
|
105 |
+
'73': visa_or_mastercard
|
106 |
+
'74': why_verify_identity
|
107 |
+
'75': wrong_amount_of_cash_received
|
108 |
+
'76': wrong_exchange_rate_for_cash_withdrawal
|
109 |
+
splits:
|
110 |
+
- name: train
|
111 |
+
num_bytes: 715028
|
112 |
+
num_examples: 10003
|
113 |
+
- name: test
|
114 |
+
num_bytes: 204010
|
115 |
+
num_examples: 3080
|
116 |
+
download_size: 388204
|
117 |
+
dataset_size: 919038
|
118 |
+
configs:
|
119 |
+
- config_name: default
|
120 |
+
data_files:
|
121 |
+
- split: train
|
122 |
+
path: data/train-*
|
123 |
+
- split: test
|
124 |
+
path: data/test-*
|
125 |
---
|
126 |
|
127 |
# Dataset Card for BANKING77
|
banking77.py
DELETED
@@ -1,169 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
"""BANKING77 dataset."""
|
16 |
-
|
17 |
-
|
18 |
-
import csv
|
19 |
-
|
20 |
-
import datasets
|
21 |
-
|
22 |
-
|
23 |
-
_CITATION = """\
|
24 |
-
@inproceedings{Casanueva2020,
|
25 |
-
author = {I{\~{n}}igo Casanueva and Tadas Temcinas and Daniela Gerz and Matthew Henderson and Ivan Vulic},
|
26 |
-
title = {Efficient Intent Detection with Dual Sentence Encoders},
|
27 |
-
year = {2020},
|
28 |
-
month = {mar},
|
29 |
-
note = {Data available at https://github.com/PolyAI-LDN/task-specific-datasets},
|
30 |
-
url = {https://arxiv.org/abs/2003.04807},
|
31 |
-
booktitle = {Proceedings of the 2nd Workshop on NLP for ConvAI - ACL 2020}
|
32 |
-
}
|
33 |
-
""" # noqa: W605
|
34 |
-
|
35 |
-
_DESCRIPTION = """\
|
36 |
-
BANKING77 dataset provides a very fine-grained set of intents in a banking domain.
|
37 |
-
It comprises 13,083 customer service queries labeled with 77 intents.
|
38 |
-
It focuses on fine-grained single-domain intent detection.
|
39 |
-
"""
|
40 |
-
|
41 |
-
_HOMEPAGE = "https://github.com/PolyAI-LDN/task-specific-datasets"
|
42 |
-
|
43 |
-
_LICENSE = "Creative Commons Attribution 4.0 International"
|
44 |
-
|
45 |
-
_TRAIN_DOWNLOAD_URL = (
|
46 |
-
"https://raw.githubusercontent.com/PolyAI-LDN/task-specific-datasets/master/banking_data/train.csv"
|
47 |
-
)
|
48 |
-
_TEST_DOWNLOAD_URL = "https://raw.githubusercontent.com/PolyAI-LDN/task-specific-datasets/master/banking_data/test.csv"
|
49 |
-
|
50 |
-
|
51 |
-
class Banking77(datasets.GeneratorBasedBuilder):
|
52 |
-
"""BANKING77 dataset."""
|
53 |
-
|
54 |
-
VERSION = datasets.Version("1.1.0")
|
55 |
-
|
56 |
-
def _info(self):
|
57 |
-
features = datasets.Features(
|
58 |
-
{
|
59 |
-
"text": datasets.Value("string"),
|
60 |
-
"label": datasets.features.ClassLabel(
|
61 |
-
names=[
|
62 |
-
"activate_my_card",
|
63 |
-
"age_limit",
|
64 |
-
"apple_pay_or_google_pay",
|
65 |
-
"atm_support",
|
66 |
-
"automatic_top_up",
|
67 |
-
"balance_not_updated_after_bank_transfer",
|
68 |
-
"balance_not_updated_after_cheque_or_cash_deposit",
|
69 |
-
"beneficiary_not_allowed",
|
70 |
-
"cancel_transfer",
|
71 |
-
"card_about_to_expire",
|
72 |
-
"card_acceptance",
|
73 |
-
"card_arrival",
|
74 |
-
"card_delivery_estimate",
|
75 |
-
"card_linking",
|
76 |
-
"card_not_working",
|
77 |
-
"card_payment_fee_charged",
|
78 |
-
"card_payment_not_recognised",
|
79 |
-
"card_payment_wrong_exchange_rate",
|
80 |
-
"card_swallowed",
|
81 |
-
"cash_withdrawal_charge",
|
82 |
-
"cash_withdrawal_not_recognised",
|
83 |
-
"change_pin",
|
84 |
-
"compromised_card",
|
85 |
-
"contactless_not_working",
|
86 |
-
"country_support",
|
87 |
-
"declined_card_payment",
|
88 |
-
"declined_cash_withdrawal",
|
89 |
-
"declined_transfer",
|
90 |
-
"direct_debit_payment_not_recognised",
|
91 |
-
"disposable_card_limits",
|
92 |
-
"edit_personal_details",
|
93 |
-
"exchange_charge",
|
94 |
-
"exchange_rate",
|
95 |
-
"exchange_via_app",
|
96 |
-
"extra_charge_on_statement",
|
97 |
-
"failed_transfer",
|
98 |
-
"fiat_currency_support",
|
99 |
-
"get_disposable_virtual_card",
|
100 |
-
"get_physical_card",
|
101 |
-
"getting_spare_card",
|
102 |
-
"getting_virtual_card",
|
103 |
-
"lost_or_stolen_card",
|
104 |
-
"lost_or_stolen_phone",
|
105 |
-
"order_physical_card",
|
106 |
-
"passcode_forgotten",
|
107 |
-
"pending_card_payment",
|
108 |
-
"pending_cash_withdrawal",
|
109 |
-
"pending_top_up",
|
110 |
-
"pending_transfer",
|
111 |
-
"pin_blocked",
|
112 |
-
"receiving_money",
|
113 |
-
"Refund_not_showing_up",
|
114 |
-
"request_refund",
|
115 |
-
"reverted_card_payment?",
|
116 |
-
"supported_cards_and_currencies",
|
117 |
-
"terminate_account",
|
118 |
-
"top_up_by_bank_transfer_charge",
|
119 |
-
"top_up_by_card_charge",
|
120 |
-
"top_up_by_cash_or_cheque",
|
121 |
-
"top_up_failed",
|
122 |
-
"top_up_limits",
|
123 |
-
"top_up_reverted",
|
124 |
-
"topping_up_by_card",
|
125 |
-
"transaction_charged_twice",
|
126 |
-
"transfer_fee_charged",
|
127 |
-
"transfer_into_account",
|
128 |
-
"transfer_not_received_by_recipient",
|
129 |
-
"transfer_timing",
|
130 |
-
"unable_to_verify_identity",
|
131 |
-
"verify_my_identity",
|
132 |
-
"verify_source_of_funds",
|
133 |
-
"verify_top_up",
|
134 |
-
"virtual_card_not_working",
|
135 |
-
"visa_or_mastercard",
|
136 |
-
"why_verify_identity",
|
137 |
-
"wrong_amount_of_cash_received",
|
138 |
-
"wrong_exchange_rate_for_cash_withdrawal",
|
139 |
-
]
|
140 |
-
),
|
141 |
-
}
|
142 |
-
)
|
143 |
-
return datasets.DatasetInfo(
|
144 |
-
description=_DESCRIPTION,
|
145 |
-
features=features,
|
146 |
-
supervised_keys=None,
|
147 |
-
homepage=_HOMEPAGE,
|
148 |
-
license=_LICENSE,
|
149 |
-
citation=_CITATION,
|
150 |
-
)
|
151 |
-
|
152 |
-
def _split_generators(self, dl_manager):
|
153 |
-
"""Returns SplitGenerators."""
|
154 |
-
train_path = dl_manager.download_and_extract(_TRAIN_DOWNLOAD_URL)
|
155 |
-
test_path = dl_manager.download_and_extract(_TEST_DOWNLOAD_URL)
|
156 |
-
return [
|
157 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
|
158 |
-
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
|
159 |
-
]
|
160 |
-
|
161 |
-
def _generate_examples(self, filepath):
|
162 |
-
"""Yields examples as (key, example) tuples."""
|
163 |
-
with open(filepath, encoding="utf-8") as f:
|
164 |
-
csv_reader = csv.reader(f, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True)
|
165 |
-
# call next to skip header
|
166 |
-
next(csv_reader)
|
167 |
-
for id_, row in enumerate(csv_reader):
|
168 |
-
text, label = row
|
169 |
-
yield id_, {"text": text, "label": label}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/test-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:535fc96c4c2b4c2dbdeb0d4b31f24a4859620cf663d6c19c1bd1f97450c410be
|
3 |
+
size 92969
|
data/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4526edfa60622ff9b39e238657ab6d712f6aba1ba91c9d7ed7897b0715ee0390
|
3 |
+
size 295235
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"default": {"description": "BANKING77 dataset provides a very fine-grained set of intents in a banking domain.\nIt comprises 13,083 customer service queries labeled with 77 intents.\nIt focuses on fine-grained single-domain intent detection.\n", "citation": "@inproceedings{Casanueva2020,\n author = {I{\\~{n}}igo Casanueva and Tadas Temcinas and Daniela Gerz and Matthew Henderson and Ivan Vulic},\n title = {Efficient Intent Detection with Dual Sentence Encoders},\n year = {2020},\n month = {mar},\n note = {Data available at https://github.com/PolyAI-LDN/task-specific-datasets},\n url = {https://arxiv.org/abs/2003.04807},\n booktitle = {Proceedings of the 2nd Workshop on NLP for ConvAI - ACL 2020}\n}\n", "homepage": "https://github.com/PolyAI-LDN/task-specific-datasets", "license": "Creative Commons Attribution 4.0 International", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 77, "names": ["activate_my_card", "age_limit", "apple_pay_or_google_pay", "atm_support", "automatic_top_up", "balance_not_updated_after_bank_transfer", "balance_not_updated_after_cheque_or_cash_deposit", "beneficiary_not_allowed", "cancel_transfer", "card_about_to_expire", "card_acceptance", "card_arrival", "card_delivery_estimate", "card_linking", "card_not_working", "card_payment_fee_charged", "card_payment_not_recognised", "card_payment_wrong_exchange_rate", "card_swallowed", "cash_withdrawal_charge", "cash_withdrawal_not_recognised", "change_pin", "compromised_card", "contactless_not_working", "country_support", "declined_card_payment", "declined_cash_withdrawal", "declined_transfer", "direct_debit_payment_not_recognised", "disposable_card_limits", "edit_personal_details", "exchange_charge", "exchange_rate", "exchange_via_app", "extra_charge_on_statement", "failed_transfer", "fiat_currency_support", "get_disposable_virtual_card", "get_physical_card", "getting_spare_card", "getting_virtual_card", "lost_or_stolen_card", "lost_or_stolen_phone", "order_physical_card", "passcode_forgotten", "pending_card_payment", "pending_cash_withdrawal", "pending_top_up", "pending_transfer", "pin_blocked", "receiving_money", "Refund_not_showing_up", "request_refund", "reverted_card_payment?", "supported_cards_and_currencies", "terminate_account", "top_up_by_bank_transfer_charge", "top_up_by_card_charge", "top_up_by_cash_or_cheque", "top_up_failed", "top_up_limits", "top_up_reverted", "topping_up_by_card", "transaction_charged_twice", "transfer_fee_charged", "transfer_into_account", "transfer_not_received_by_recipient", "transfer_timing", "unable_to_verify_identity", "verify_my_identity", "verify_source_of_funds", "verify_top_up", "virtual_card_not_working", "visa_or_mastercard", "why_verify_identity", "wrong_amount_of_cash_received", "wrong_exchange_rate_for_cash_withdrawal"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "text", "label_column": "label", "labels": ["Refund_not_showing_up", "activate_my_card", "age_limit", "apple_pay_or_google_pay", "atm_support", "automatic_top_up", "balance_not_updated_after_bank_transfer", "balance_not_updated_after_cheque_or_cash_deposit", "beneficiary_not_allowed", "cancel_transfer", "card_about_to_expire", "card_acceptance", "card_arrival", "card_delivery_estimate", "card_linking", "card_not_working", "card_payment_fee_charged", "card_payment_not_recognised", "card_payment_wrong_exchange_rate", "card_swallowed", "cash_withdrawal_charge", "cash_withdrawal_not_recognised", "change_pin", "compromised_card", "contactless_not_working", "country_support", "declined_card_payment", "declined_cash_withdrawal", "declined_transfer", "direct_debit_payment_not_recognised", "disposable_card_limits", "edit_personal_details", "exchange_charge", "exchange_rate", "exchange_via_app", "extra_charge_on_statement", "failed_transfer", "fiat_currency_support", "get_disposable_virtual_card", "get_physical_card", "getting_spare_card", "getting_virtual_card", "lost_or_stolen_card", "lost_or_stolen_phone", "order_physical_card", "passcode_forgotten", "pending_card_payment", "pending_cash_withdrawal", "pending_top_up", "pending_transfer", "pin_blocked", "receiving_money", "request_refund", "reverted_card_payment?", "supported_cards_and_currencies", "terminate_account", "top_up_by_bank_transfer_charge", "top_up_by_card_charge", "top_up_by_cash_or_cheque", "top_up_failed", "top_up_limits", "top_up_reverted", "topping_up_by_card", "transaction_charged_twice", "transfer_fee_charged", "transfer_into_account", "transfer_not_received_by_recipient", "transfer_timing", "unable_to_verify_identity", "verify_my_identity", "verify_source_of_funds", "verify_top_up", "virtual_card_not_working", "visa_or_mastercard", "why_verify_identity", "wrong_amount_of_cash_received", "wrong_exchange_rate_for_cash_withdrawal"]}], "builder_name": "banking77", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 715036, "num_examples": 10003, "dataset_name": "banking77"}, "test": {"name": "test", "num_bytes": 204014, "num_examples": 3080, "dataset_name": "banking77"}}, "download_checksums": {"https://raw.githubusercontent.com/PolyAI-LDN/task-specific-datasets/master/banking_data/train.csv": {"num_bytes": 839073, "checksum": "b06e26ac675513959a63135f11b94ea7786ed02da65db93a5650d8838cbc664b"}, "https://raw.githubusercontent.com/PolyAI-LDN/task-specific-datasets/master/banking_data/test.csv": {"num_bytes": 239961, "checksum": "d12d6e3bc4c3103966ae786dc435913c0c563dfa328f5a3646d0e62cfeeb474d"}}, "download_size": 1079034, "post_processing_size": null, "dataset_size": 919050, "size_in_bytes": 1998084}}
|
|
|
|