Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Commit ·
1846984
1
Parent(s): 90d4e2e
Convert dataset to Parquet (#8)
Browse files- Convert dataset to Parquet (0b62e79500b84f0fff5a36a4404028f48fbc8621)
- Delete loading script (ba9a3ab508abae31252e267aac205653b154a715)
- Delete legacy dataset_infos.json (a6e17a9fc41e5bc0832b4a675bdf553294cdaa7a)
Co-authored-by: Jose Alberto Esquivel Patino <betoesquivel@users.noreply.huggingface.co>
Files changed (5)
- README.md+101-1
- banking77.pyDeleted-169
- data/test-00000-of-00001.parquetAdded+3
- data/train-00000-of-00001.parquetAdded+3
- dataset_infos.jsonDeleted-1
19 unmodified lines202122232425262719 unmodified linestask_ids:- intent-classification- multi-class-classificationpaperswithcode_id: nullpretty_name: BANKING77---# Dataset Card for BANKING7719 unmodified lines202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612719 unmodified linestask_ids:- intent-classification- multi-class-classificationpretty_name: BANKING77configs:- config_name: defaultdata_files:- split: trainpath: data/train-*- split: testpath: data/test-*dataset_info:features:- name: textdtype: string- name: labeldtype:class_label:names:'0': activate_my_card'1': age_limit'2': apple_pay_or_google_pay'3': atm_support'4': automatic_top_up'5': balance_not_updated_after_bank_transfer'6': balance_not_updated_after_cheque_or_cash_deposit'7': beneficiary_not_allowed'8': cancel_transfer'9': card_about_to_expire'10': card_acceptance'11': card_arrival'12': card_delivery_estimate'13': card_linking'14': card_not_working'15': card_payment_fee_charged'16': card_payment_not_recognised'17': card_payment_wrong_exchange_rate'18': card_swallowed'19': cash_withdrawal_charge'20': cash_withdrawal_not_recognised'21': change_pin'22': compromised_card'23': contactless_not_working'24': country_support'25': declined_card_payment'26': declined_cash_withdrawal'27': declined_transfer'28': direct_debit_payment_not_recognised'29': disposable_card_limits'30': edit_personal_details'31': exchange_charge'32': exchange_rate'33': exchange_via_app'34': extra_charge_on_statement'35': failed_transfer'36': fiat_currency_support'37': get_disposable_virtual_card'38': get_physical_card'39': getting_spare_card'40': getting_virtual_card'41': lost_or_stolen_card'42': lost_or_stolen_phone'43': order_physical_card'44': passcode_forgotten'45': pending_card_payment'46': pending_cash_withdrawal'47': pending_top_up'48': pending_transfer'49': pin_blocked'50': receiving_money'51': Refund_not_showing_up'52': request_refund'53': reverted_card_payment?'54': supported_cards_and_currencies'55': terminate_account'56': top_up_by_bank_transfer_charge'57': top_up_by_card_charge'58': top_up_by_cash_or_cheque'59': top_up_failed'60': top_up_limits'61': top_up_reverted'62': topping_up_by_card'63': transaction_charged_twice'64': transfer_fee_charged'65': transfer_into_account'66': transfer_not_received_by_recipient'67': transfer_timing'68': unable_to_verify_identity'69': verify_my_identity'70': verify_source_of_funds'71': verify_top_up'72': virtual_card_not_working'73': visa_or_mastercard'74': why_verify_identity'75': wrong_amount_of_cash_received'76': wrong_exchange_rate_for_cash_withdrawalsplits:- name: trainnum_bytes: 715028num_examples: 10003- name: testnum_bytes: 204010num_examples: 3080download_size: 385962dataset_size: 919038---# Dataset Card for BANKING77
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169# coding=utf-8# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License."""BANKING77 dataset."""
import csv
import datasets
_CITATION = """\@inproceedings{Casanueva2020, author = {I{\~{n}}igo Casanueva and Tadas Temcinas and Daniela Gerz and Matthew Henderson and Ivan Vulic}, title = {Efficient Intent Detection with Dual Sentence Encoders}, year = {2020}, month = {mar}, note = {Data available at https://github.com/PolyAI-LDN/task-specific-datasets}, url = {https://arxiv.org/abs/2003.04807}, booktitle = {Proceedings of the 2nd Workshop on NLP for ConvAI - ACL 2020}}""" # noqa: W605
_DESCRIPTION = """\BANKING77 dataset provides a very fine-grained set of intents in a banking domain.It comprises 13,083 customer service queries labeled with 77 intents.It focuses on fine-grained single-domain intent detection."""
_HOMEPAGE = "https://github.com/PolyAI-LDN/task-specific-datasets"
_LICENSE = "Creative Commons Attribution 4.0 International"
_TRAIN_DOWNLOAD_URL = ( "https://raw.githubusercontent.com/PolyAI-LDN/task-specific-datasets/master/banking_data/train.csv")_TEST_DOWNLOAD_URL = "https://raw.githubusercontent.com/PolyAI-LDN/task-specific-datasets/master/banking_data/test.csv"
class Banking77(datasets.GeneratorBasedBuilder): """BANKING77 dataset."""
VERSION = datasets.Version("1.1.0")
def _info(self): features = datasets.Features( { "text": datasets.Value("string"), "label": datasets.features.ClassLabel( 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", ] ), } ) return datasets.DatasetInfo( description=_DESCRIPTION, features=features, supervised_keys=None, homepage=_HOMEPAGE, license=_LICENSE, citation=_CITATION, )
def _split_generators(self, dl_manager): """Returns SplitGenerators.""" train_path = dl_manager.download_and_extract(_TRAIN_DOWNLOAD_URL) test_path = dl_manager.download_and_extract(_TEST_DOWNLOAD_URL) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}), ]
def _generate_examples(self, filepath): """Yields examples as (key, example) tuples.""" with open(filepath, encoding="utf-8") as f: csv_reader = csv.reader(f, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True) # call next to skip header next(csv_reader) for id_, row in enumerate(csv_reader): text, label = row yield id_, {"text": text, "label": label}123version https://git-lfs.github.com/spec/v1oid sha256:1f40f777c33f0edfa6c530ff84fe2878db6490838c12d22d036f626948905341size 92409123version https://git-lfs.github.com/spec/v1oid sha256:8dc89b87a188509c42cce5a086e8f7c1ff4a225bdd9ae3f23e6cdfa5806e363asize 2935531{"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}}README.md+101-1
banking77.pyDeleted-169
data/test-00000-of-00001.parquetAdded+3
data/train-00000-of-00001.parquetAdded+3
dataset_infos.jsonDeleted-1