Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Commit
•
a76ff36
0
Parent(s):
Update files from the datasets library (from 1.6.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.0
- .gitattributes +27 -0
- README.md +261 -0
- banking77.py +169 -0
- dataset_infos.json +1 -0
- dummy/1.1.0/dummy_data.zip +3 -0
.gitattributes
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- expert-generated
|
4 |
+
extended:
|
5 |
+
- original
|
6 |
+
language_creators:
|
7 |
+
- expert-generated
|
8 |
+
languages:
|
9 |
+
- en
|
10 |
+
licenses:
|
11 |
+
- cc-by-4-0
|
12 |
+
multilinguality:
|
13 |
+
- monolingual
|
14 |
+
size_categories:
|
15 |
+
- 10K<n<100K
|
16 |
+
source_datasets:
|
17 |
+
- original
|
18 |
+
task_categories:
|
19 |
+
- text-classification
|
20 |
+
task_ids:
|
21 |
+
- intent-classification
|
22 |
+
- multi-class-classification
|
23 |
+
---
|
24 |
+
|
25 |
+
# Dataset Card for BANKING77
|
26 |
+
|
27 |
+
## Table of Contents
|
28 |
+
- [Dataset Card for BANKING77](#dataset-card-for-dataset-name)
|
29 |
+
- [Table of Contents](#table-of-contents)
|
30 |
+
- [Dataset Description](#dataset-description)
|
31 |
+
- [Dataset Summary](#dataset-summary)
|
32 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
33 |
+
- [Languages](#languages)
|
34 |
+
- [Dataset Structure](#dataset-structure)
|
35 |
+
- [Data Instances](#data-instances)
|
36 |
+
- [Data Fields](#data-fields)
|
37 |
+
- [Data Splits](#data-splits)
|
38 |
+
- [Dataset Creation](#dataset-creation)
|
39 |
+
- [Curation Rationale](#curation-rationale)
|
40 |
+
- [Source Data](#source-data)
|
41 |
+
- [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
|
42 |
+
- [Who are the source language producers?](#who-are-the-source-language-producers)
|
43 |
+
- [Annotations](#annotations)
|
44 |
+
- [Annotation process](#annotation-process)
|
45 |
+
- [Who are the annotators?](#who-are-the-annotators)
|
46 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
47 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
48 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
49 |
+
- [Discussion of Biases](#discussion-of-biases)
|
50 |
+
- [Other Known Limitations](#other-known-limitations)
|
51 |
+
- [Additional Information](#additional-information)
|
52 |
+
- [Dataset Curators](#dataset-curators)
|
53 |
+
- [Licensing Information](#licensing-information)
|
54 |
+
- [Citation Information](#citation-information)
|
55 |
+
- [Contributions](#contributions)
|
56 |
+
|
57 |
+
## Dataset Description
|
58 |
+
|
59 |
+
- **Homepage:** [Github](https://github.com/PolyAI-LDN/task-specific-datasets)
|
60 |
+
- **Repository:** [Github](https://github.com/PolyAI-LDN/task-specific-datasets)
|
61 |
+
- **Paper:** [ArXiv](https://arxiv.org/abs/2003.04807)
|
62 |
+
- **Leaderboard:**
|
63 |
+
- **Point of Contact:**
|
64 |
+
|
65 |
+
### Dataset Summary
|
66 |
+
|
67 |
+
Dataset composed of online banking queries annotated with their corresponding intents.
|
68 |
+
|
69 |
+
BANKING77 dataset provides a very fine-grained set of intents in a banking domain.
|
70 |
+
It comprises 13,083 customer service queries labeled with 77 intents.
|
71 |
+
It focuses on fine-grained single-domain intent detection.
|
72 |
+
|
73 |
+
### Supported Tasks and Leaderboards
|
74 |
+
|
75 |
+
Intent classification, intent detection
|
76 |
+
|
77 |
+
### Languages
|
78 |
+
|
79 |
+
English
|
80 |
+
|
81 |
+
## Dataset Structure
|
82 |
+
|
83 |
+
### Data Instances
|
84 |
+
|
85 |
+
An example of 'train' looks as follows:
|
86 |
+
```
|
87 |
+
{
|
88 |
+
'label': 11, # integer label corresponding to "card_arrival" intent
|
89 |
+
'text': 'I am still waiting on my card?'
|
90 |
+
}
|
91 |
+
```
|
92 |
+
|
93 |
+
### Data Fields
|
94 |
+
|
95 |
+
- `text`: a string feature.
|
96 |
+
- `label`: One of classification labels (0-76) corresponding to unique intents.
|
97 |
+
|
98 |
+
Intent names are mapped to `label` in the following way:
|
99 |
+
|
100 |
+
| label | intent (category) |
|
101 |
+
|---:|:-------------------------------------------------|
|
102 |
+
| 0 | activate_my_card |
|
103 |
+
| 1 | age_limit |
|
104 |
+
| 2 | apple_pay_or_google_pay |
|
105 |
+
| 3 | atm_support |
|
106 |
+
| 4 | automatic_top_up |
|
107 |
+
| 5 | balance_not_updated_after_bank_transfer |
|
108 |
+
| 6 | balance_not_updated_after_cheque_or_cash_deposit |
|
109 |
+
| 7 | beneficiary_not_allowed |
|
110 |
+
| 8 | cancel_transfer |
|
111 |
+
| 9 | card_about_to_expire |
|
112 |
+
| 10 | card_acceptance |
|
113 |
+
| 11 | card_arrival |
|
114 |
+
| 12 | card_delivery_estimate |
|
115 |
+
| 13 | card_linking |
|
116 |
+
| 14 | card_not_working |
|
117 |
+
| 15 | card_payment_fee_charged |
|
118 |
+
| 16 | card_payment_not_recognised |
|
119 |
+
| 17 | card_payment_wrong_exchange_rate |
|
120 |
+
| 18 | card_swallowed |
|
121 |
+
| 19 | cash_withdrawal_charge |
|
122 |
+
| 20 | cash_withdrawal_not_recognised |
|
123 |
+
| 21 | change_pin |
|
124 |
+
| 22 | compromised_card |
|
125 |
+
| 23 | contactless_not_working |
|
126 |
+
| 24 | country_support |
|
127 |
+
| 25 | declined_card_payment |
|
128 |
+
| 26 | declined_cash_withdrawal |
|
129 |
+
| 27 | declined_transfer |
|
130 |
+
| 28 | direct_debit_payment_not_recognised |
|
131 |
+
| 29 | disposable_card_limits |
|
132 |
+
| 30 | edit_personal_details |
|
133 |
+
| 31 | exchange_charge |
|
134 |
+
| 32 | exchange_rate |
|
135 |
+
| 33 | exchange_via_app |
|
136 |
+
| 34 | extra_charge_on_statement |
|
137 |
+
| 35 | failed_transfer |
|
138 |
+
| 36 | fiat_currency_support |
|
139 |
+
| 37 | get_disposable_virtual_card |
|
140 |
+
| 38 | get_physical_card |
|
141 |
+
| 39 | getting_spare_card |
|
142 |
+
| 40 | getting_virtual_card |
|
143 |
+
| 41 | lost_or_stolen_card |
|
144 |
+
| 42 | lost_or_stolen_phone |
|
145 |
+
| 43 | order_physical_card |
|
146 |
+
| 44 | passcode_forgotten |
|
147 |
+
| 45 | pending_card_payment |
|
148 |
+
| 46 | pending_cash_withdrawal |
|
149 |
+
| 47 | pending_top_up |
|
150 |
+
| 48 | pending_transfer |
|
151 |
+
| 49 | pin_blocked |
|
152 |
+
| 50 | receiving_money |
|
153 |
+
| 51 | Refund_not_showing_up |
|
154 |
+
| 52 | request_refund |
|
155 |
+
| 53 | reverted_card_payment? |
|
156 |
+
| 54 | supported_cards_and_currencies |
|
157 |
+
| 55 | terminate_account |
|
158 |
+
| 56 | top_up_by_bank_transfer_charge |
|
159 |
+
| 57 | top_up_by_card_charge |
|
160 |
+
| 58 | top_up_by_cash_or_cheque |
|
161 |
+
| 59 | top_up_failed |
|
162 |
+
| 60 | top_up_limits |
|
163 |
+
| 61 | top_up_reverted |
|
164 |
+
| 62 | topping_up_by_card |
|
165 |
+
| 63 | transaction_charged_twice |
|
166 |
+
| 64 | transfer_fee_charged |
|
167 |
+
| 65 | transfer_into_account |
|
168 |
+
| 66 | transfer_not_received_by_recipient |
|
169 |
+
| 67 | transfer_timing |
|
170 |
+
| 68 | unable_to_verify_identity |
|
171 |
+
| 69 | verify_my_identity |
|
172 |
+
| 70 | verify_source_of_funds |
|
173 |
+
| 71 | verify_top_up |
|
174 |
+
| 72 | virtual_card_not_working |
|
175 |
+
| 73 | visa_or_mastercard |
|
176 |
+
| 74 | why_verify_identity |
|
177 |
+
| 75 | wrong_amount_of_cash_received |
|
178 |
+
| 76 | wrong_exchange_rate_for_cash_withdrawal |
|
179 |
+
|
180 |
+
### Data Splits
|
181 |
+
|
182 |
+
| Dataset statistics | Train | Test |
|
183 |
+
| --- | --- | --- |
|
184 |
+
| Number of examples | 10 003 | 3 080 |
|
185 |
+
| Average character length | 59.5 | 54.2 |
|
186 |
+
| Number of intents | 77 | 77 |
|
187 |
+
| Number of domains | 1 | 1 |
|
188 |
+
|
189 |
+
## Dataset Creation
|
190 |
+
|
191 |
+
### Curation Rationale
|
192 |
+
|
193 |
+
Previous intent detection datasets such as Web Apps, Ask Ubuntu, the Chatbot Corpus or SNIPS are limited to small number of classes (<10), which oversimplifies the intent detection task and does not emulate the true environment of commercial systems. Although there exist large scale *multi-domain* datasets ([HWU64](https://github.com/xliuhw/NLU-Evaluation-Data) and [CLINC150](https://github.com/clinc/oos-eval)), the examples per each domain may not sufficiently capture the full complexity of each domain as encountered "in the wild". This dataset tries to fill the gap and provides a very fine-grained set of intents in a *single-domain* i.e. **banking**. Its focus on fine-grained single-domain intent detection makes it complementary to the other two multi-domain datasets.
|
194 |
+
|
195 |
+
### Source Data
|
196 |
+
|
197 |
+
#### Initial Data Collection and Normalization
|
198 |
+
|
199 |
+
[More Information Needed]
|
200 |
+
|
201 |
+
#### Who are the source language producers?
|
202 |
+
|
203 |
+
[More Information Needed]
|
204 |
+
|
205 |
+
### Annotations
|
206 |
+
|
207 |
+
#### Annotation process
|
208 |
+
|
209 |
+
The dataset does not contain any additional annotations.
|
210 |
+
|
211 |
+
#### Who are the annotators?
|
212 |
+
|
213 |
+
[N/A]
|
214 |
+
|
215 |
+
### Personal and Sensitive Information
|
216 |
+
|
217 |
+
[N/A]
|
218 |
+
|
219 |
+
## Considerations for Using the Data
|
220 |
+
|
221 |
+
### Social Impact of Dataset
|
222 |
+
|
223 |
+
The purpose of this dataset it to help develop better intent detection systems.
|
224 |
+
|
225 |
+
Any comprehensive intent detection evaluation should involve both coarser-grained multi-domain datasets and a fine-grained single-domain dataset such as BANKING77.
|
226 |
+
|
227 |
+
### Discussion of Biases
|
228 |
+
|
229 |
+
[More Information Needed]
|
230 |
+
|
231 |
+
### Other Known Limitations
|
232 |
+
|
233 |
+
[More Information Needed]
|
234 |
+
|
235 |
+
## Additional Information
|
236 |
+
|
237 |
+
### Dataset Curators
|
238 |
+
|
239 |
+
[PolyAI](https://github.com/PolyAI-LDN)
|
240 |
+
|
241 |
+
### Licensing Information
|
242 |
+
|
243 |
+
Creative Commons Attribution 4.0 International
|
244 |
+
|
245 |
+
### Citation Information
|
246 |
+
|
247 |
+
```
|
248 |
+
@inproceedings{Casanueva2020,
|
249 |
+
author = {I{\~{n}}igo Casanueva and Tadas Temcinas and Daniela Gerz and Matthew Henderson and Ivan Vulic},
|
250 |
+
title = {Efficient Intent Detection with Dual Sentence Encoders},
|
251 |
+
year = {2020},
|
252 |
+
month = {mar},
|
253 |
+
note = {Data available at https://github.com/PolyAI-LDN/task-specific-datasets},
|
254 |
+
url = {https://arxiv.org/abs/2003.04807},
|
255 |
+
booktitle = {Proceedings of the 2nd Workshop on NLP for ConvAI - ACL 2020}
|
256 |
+
}
|
257 |
+
```
|
258 |
+
|
259 |
+
### Contributions
|
260 |
+
|
261 |
+
Thanks to [@dkajtoch](https://github.com/dkajtoch) for adding this dataset.
|
banking77.py
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}
|
dataset_infos.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
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, "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}}
|
dummy/1.1.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb87e4bae3a4fd55d2449aba8a20e6a4d8ac616b5033bf248e3cb5decfa32e27
|
3 |
+
size 663
|