Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
1M<n<10M
Language Creators:
crowdsourced
Annotations Creators:
crowdsourced
Source Datasets:
original
License:
Kayvane Shakerifar commited on
Commit
37a25a0
1 Parent(s): 1e13862

PR for the CFPB Consumer Complaints dataset (#3617)

Browse files

* PR for the CFPB Consumer Complaints dataset

* Update datasets/consumer-finance-complaints/README.md

Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>

* Update datasets/consumer-finance-complaints/README.md

Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>

* Update datasets/consumer-finance-complaints/consumerComplaints.py

Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>

* Update datasets/consumer-finance-complaints/consumerComplaints.py

Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>

* few additional tweaks to README

* Update datasets/consumer-finance-complaints/consumerComplaints.py

Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>

* changed filename to match datasets requirements

* Update datasets/consumer-finance-complaints/README.md

Co-authored-by: Mario Šaško <mario@huggingface.co>

* updated readme, dataset_info and ran tests

* moving dummy file to 0.0.0

* Apply suggestions from code review

Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>
Co-authored-by: Mario Šaško <mario@huggingface.co>

Commit from https://github.com/huggingface/datasets/commit/9deaf26d4224948040aab75193254d66657352f6

README.md ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ language_creators:
5
+ - crowdsourced
6
+ languages:
7
+ - en
8
+ licenses:
9
+ - upl-1-0
10
+ multilinguality:
11
+ - monolingual
12
+ pretty_name: consumer-finance-complaints
13
+ size_categories:
14
+ - 1M<n<10M
15
+ source_datasets:
16
+ - original
17
+ task_categories:
18
+ - text-classification
19
+ task_ids:
20
+ - topic-classification
21
+ ---
22
+
23
+ # Dataset Card for Consumer Finance Complaints
24
+
25
+ ## Table of Contents
26
+ - [Table of Contents](#table-of-contents)
27
+ - [Dataset Description](#dataset-description)
28
+ - [Dataset Summary](#dataset-summary)
29
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
30
+ - [Languages](#languages)
31
+ - [Dataset Structure](#dataset-structure)
32
+ - [Data Instances](#data-instances)
33
+ - [Data Fields](#data-fields)
34
+ - [Data Splits](#data-splits)
35
+ - [Dataset Creation](#dataset-creation)
36
+ - [Curation Rationale](#curation-rationale)
37
+ - [Source Data](#source-data)
38
+ - [Annotations](#annotations)
39
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
40
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
41
+ - [Social Impact of Dataset](#social-impact-of-dataset)
42
+ - [Discussion of Biases](#discussion-of-biases)
43
+ - [Other Known Limitations](#other-known-limitations)
44
+ - [Additional Information](#additional-information)
45
+ - [Dataset Curators](#dataset-curators)
46
+ - [Licensing Information](#licensing-information)
47
+ - [Citation Information](#citation-information)
48
+ - [Contributions](#contributions)
49
+
50
+ ## Dataset Description
51
+
52
+ - **Homepage:** https://www.consumerfinance.gov/data-research/consumer-complaints/
53
+ - **Repository:**
54
+ https://github.com/cfpb/consumerfinance.gov
55
+ - **Paper:**
56
+ - **Leaderboard:**
57
+ - **Point of Contact:**
58
+
59
+ ### Dataset Summary
60
+
61
+ This database is a collection of complaints about consumer financial products and services that we sent to companies for response.
62
+
63
+ The Consumer Complaint Database is a collection of complaints about consumer financial products and services that we sent to companies for response. Complaints are published after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first. Complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the Consumer Complaint Database. The database generally updates daily.
64
+
65
+ Complaints can give us insights into problems people are experiencing in the marketplace and help us regulate consumer financial products and services under existing federal consumer financial laws, enforce those laws judiciously, and educate and empower consumers to make informed financial decisions. We also report on complaint trends annually in Consumer Response’s Annual Report to Congress.
66
+
67
+ ### Supported Tasks and Leaderboards
68
+
69
+ Text Classification Tasks
70
+
71
+ | Task | Label Name | Description | SOTA |
72
+ | ----------- | ----------- |----------- | ----------- |
73
+ | Text Classification | Product| Predict the related product of a complaint | N/A |
74
+
75
+ | Task | Label Name | Description | SOTA |
76
+ | ----------- | ----------- |----------- | ----------- |
77
+ | Text Classification | Sub-Product| Predict the related sub product of a complaint | N/A |
78
+
79
+ | Task | Label Name | Description | SOTA |
80
+ | ----------- | ----------- |----------- | ----------- |
81
+ | Text Classification | Tags | Predict whether a complaint has been made by someone elderly or a service person| N/A |
82
+
83
+ ### Languages
84
+
85
+ English
86
+
87
+ ## Dataset Structure
88
+
89
+ ### Data Instances
90
+
91
+ This dataset is a point in time extract of the database, the database increases in size every day
92
+
93
+ An example of 'train' looks as follows.
94
+
95
+ ```
96
+ {
97
+ "Complaint ID": "4511031",
98
+ "Product": "Credit reporting, credit repair services, or other personal consumer reports",
99
+ "Sub Issue": "Credit inquiries on your report that you don't recognize",
100
+ "Consumer Disputed": "N/A",
101
+ "Sub Product": "Credit reporting",
102
+ "State": "TX",
103
+ "Tags": "Older American, Servicemember",
104
+ "Company Public Response": "",
105
+ "Zip Code": "75202",
106
+ "Issue": "Improper use of your report",
107
+ "Submitted via": "Web",
108
+ "Company Response To Consumer": "Closed with explanation",
109
+ "Complaint Text": "I am XXXX XXXX and I am submitting this complaint myself and there is no third party involved. Despite the multiple previous written requests, the unverified inquiries listed below still remain on my credit report in violation of Federal Law. The Equifax Credit Bureau failed to comply with Fair Credit Reporting Act, XXXX XXXX sections XXXX within the time set forth by law and continued reporting of erroneous information which now, given all my attempts to address it directly with the creditor, as willful negligence and non-compliance with federal statutes. PLEASE REMOVE THE FOLLOWING INQUIRIES COMPLETELY FROM MY CREDIT REPORT : XXXX CARD-Date of inquiry XX/XX/XXXX XXXX CARD-Date of inquiry XX/XX/XXXX",
110
+ "Date Received": "07-02-2021",
111
+ "Company": "EQUIFAX, INC.",
112
+ "Consumer Consent Provided": "Consent not provided",
113
+ "Timely Response": "Yes",
114
+ "Date Sent To Company": "2021-07-02"
115
+ }
116
+ ```
117
+
118
+ ### Data Fields
119
+
120
+
121
+ | Field | name | Description | Data Type |
122
+ | ----------- | ----------- |----------- | ----------- |
123
+ | Date received | The date the CFPB received the complaint | date & time | |
124
+ | Product | The type of product the consumer identified in the complaint | plain text | This field is a categorical variable. |
125
+ | Sub-product | The type of sub-product the consumer identified in the complaint | plain text | This field is a categorical variable. Not all Products have Sub-products. |
126
+ | Issue | The issue the consumer identified in the complaint | plain text | This field is a categorical variable. Possible values are dependent on Product. |
127
+ | Sub-issue | The sub-issue the consumer identified in the complaint | plain text | This field is a categorical variable. Possible values are dependent on product and issue. Not all Issues have corresponding Sub-issues. |
128
+ | Consumer complaint narrative | Consumer complaint narrative is the consumer-submitted description of "what happened" from the complaint. Consumers must opt-in to share their narrative. We will not publish the narrative unless the consumer consents, and consumers can opt-out at any time. The CFPB takes reasonable steps to scrub personal information from each complaint that could be used to identify the consumer. | plain text | Consumers' descriptions of what happened are included if consumers consent to publishing the description and after we take steps to remove personal information. |
129
+ | Company public response | The company's optional, public-facing response to a consumer's complaint. Companies can choose to select a response from a pre-set list of options that will be posted on the public database. For example, "Company believes complaint is the result of an isolated error." | plain text | Companies' public-facing responses to complaints are included if companies choose to publish one. Companies may select a public response from a set list of options as soon as they respond to the complaint, but no later than 180 days after the complaint was sent to the company for response. |
130
+ | Company | The complaint is about this company | plain text | This field is a categorical variable. |
131
+ | State | The state of the mailing address provided by the consumer | plain text | This field is a categorical variable. |
132
+ | ZIP code | The mailing ZIP code provided by the consumer | plain text | Mailing ZIP code provided by the consumer. This field may: i) include the first five digits of a ZIP code; ii) include the first three digits of a ZIP code (if the consumer consented to publication of their complaint narrative); or iii) be blank (if ZIP codes have been submitted with non-numeric values, if there are less than 20,000 people in a given ZIP code, or if the complaint has an address outside of the United States). For example, complaints where the submitter reports the age of the consumer as 62 years or older are tagged, ‘Older American.’ Complaints submitted by or on behalf of a servicemember or the spouse or dependent of a servicemember are tagged, ‘Servicemember.’ Servicemember includes anyone who is active duty, National Guard, or Reservist, as well as anyone who previously served and is a Veteran or retiree. |
133
+ | Tags | Data that supports easier searching and sorting of complaints submitted by or on behalf of consumers. | plain text | |
134
+ | Consumer consent provided? | Identifies whether the consumer opted in to publish their complaint narrative. We do not publish the narrative unless the consumer consents and consumers can opt-out at any time. | plain text | This field shows whether a consumer provided consent to publish their complaint narrative |
135
+ | Submitted via | How the complaint was submitted to the CFPB | plain text | This field is a categorical variable. |
136
+ | Date sent to company | The date the CFPB sent the complaint to the company | date & time | |
137
+ | Company response to consumer | This is how the company responded. For example, "Closed with explanation." | plain text | This field is a categorical variable. |
138
+ | Timely response? | Whether the company gave a timely response | plain text | yes/no |
139
+ | Consumer disputed? | Whether the consumer disputed the company’s response | plain text | YES/ NO/ N/A: The Bureau discontinued the consumer dispute option on April 24, 2017. |
140
+ | Complaint ID | The unique identification number for a complaint | number | |
141
+
142
+
143
+ ### Data Splits
144
+
145
+ This dataset only contains a TRAIN set - this can be further split into TRAIN, TEST and VALIDATE subsets with the datasets library
146
+
147
+ ## Dataset Creation
148
+
149
+ ### Curation Rationale
150
+
151
+ Open sourcing customer complaints
152
+
153
+ ### Source Data
154
+
155
+ https://cfpb.github.io/api/ccdb/
156
+
157
+ #### Initial Data Collection and Normalization
158
+
159
+ This database is maintained by the Consumer Financial Protection Bureau
160
+
161
+ #### Who are the source language producers?
162
+
163
+ English
164
+
165
+ ### Annotations
166
+
167
+ #### Annotation process
168
+
169
+ User submitted to the CFPB
170
+
171
+ #### Who are the annotators?
172
+
173
+ N/A
174
+
175
+ ### Personal and Sensitive Information
176
+
177
+ All PII data has been anonymised
178
+
179
+ ## Considerations for Using the Data
180
+
181
+ ### Social Impact of Dataset
182
+
183
+ N/A
184
+
185
+ ### Discussion of Biases
186
+
187
+ This database is not a statistical sample of consumers’ experiences in the marketplace. Complaints are not necessarily representative of all consumers’ experiences and complaints do not constitute “information” for purposes of the Information Quality Act .
188
+
189
+ Complaint volume should be considered in the context of company size and/or market share. For example, companies with more customers may have more complaints than companies with fewer customers. We encourage you to pair complaint data with public and private data sets for additional context.
190
+
191
+ The Bureau publishes the consumer’s narrative description of his or her experience if the consumer opts to share it publicly and after the Bureau takes steps to remove personal information. We don’t verify all the allegations in complaint narratives. Unproven allegations in consumer narratives should be regarded as opinion, not fact. We do not adopt the views expressed and make no representation that consumers’ allegations are accurate, clear, complete, or unbiased in substance or presentation. Users should consider what conclusions may be fairly drawn from complaints alone.
192
+
193
+
194
+ ### Other Known Limitations
195
+
196
+ N/A
197
+
198
+ ## Additional Information
199
+
200
+ ### Dataset Curators
201
+
202
+ https://cfpb.github.io/api/ccdb/
203
+
204
+ ### Licensing Information
205
+
206
+ Creative Commons Zero v1.0 Universal
207
+
208
+ ### Citation Information
209
+
210
+ N/A
211
+
212
+ ### Contributions
213
+
214
+ Thanks to [@kayvane1](https://github.com/kayvane1) for adding this dataset and to the [Consumer Financial Protection Bureau](https://cfpb.github.io/) for publishing it.
consumer-finance-complaints.py ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import csv
2
+ import os
3
+ import textwrap
4
+
5
+ import datasets
6
+ from datasets import TextClassification
7
+
8
+
9
+ logger = datasets.logging.get_logger(__name__)
10
+
11
+
12
+ _DESCRIPTION = textwrap.dedent(
13
+ """\
14
+ The Consumer Complaint Database is a collection of complaints about consumer financial products and services that we sent to companies for response. Complaints are published after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first. Complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the Consumer Complaint Database. The database generally updates daily.
15
+ There are multiple Text Classification problems that can be solved with this dataset:
16
+ - Complaint Type Identification
17
+ - Complaint Sub-Product Identification
18
+ - Complaint from vulnerable or Service-person
19
+ """
20
+ )
21
+
22
+ _CITATION = """\
23
+ """
24
+
25
+ _BASE_DOWNLOAD_URL = "https://files.consumerfinance.gov/ccdb/complaints.csv.zip"
26
+
27
+ _HOMEPAGE = "https://www.consumerfinance.gov/data-research/consumer-complaints/"
28
+
29
+ _LICENSE = "https://cfpb.github.io/source-code-policy/"
30
+
31
+ _SUPPORTED_VERSIONS = [
32
+ datasets.Version("1.0.0", "Initial Version"),
33
+ ]
34
+
35
+
36
+ _DEFAULT_VERSION = datasets.Version("1.0.0", "Initial Version")
37
+
38
+ _url = _BASE_DOWNLOAD_URL
39
+
40
+ _TAGS = ["Servicemember", "Older American", "Older American, Servicemember", ""]
41
+
42
+ _SUB_PRODUCT_CATEGORIES = [
43
+ "Credit reporting",
44
+ "General-purpose credit card or charge card",
45
+ "Checking account",
46
+ "Other debt",
47
+ "Second mortgage",
48
+ "Conventional home mortgage",
49
+ "I do not know",
50
+ "Credit card debt",
51
+ "Medical debt",
52
+ "Federal student loan servicing",
53
+ "FHA mortgage",
54
+ "Conventional fixed mortgage",
55
+ "Loan",
56
+ "Other (i.e. phone, health club, etc.)",
57
+ "Store credit card",
58
+ "Installment loan",
59
+ "Credit card",
60
+ "Medical",
61
+ "Mobile or digital wallet",
62
+ "Private student loan",
63
+ "Non-federal student loan",
64
+ "Domestic (US) money transfer",
65
+ "VA mortgage",
66
+ "Vehicle loan",
67
+ "Auto debt",
68
+ "Payday loan",
69
+ "Conventional adjustable mortgage (ARM)",
70
+ "Other personal consumer report",
71
+ "Payday loan debt",
72
+ "Savings account",
73
+ "Virtual currency",
74
+ "Other bank product/service",
75
+ "Other type of mortgage",
76
+ "Other banking product or service",
77
+ "Other mortgage",
78
+ "International money transfer",
79
+ "Lease",
80
+ "General-purpose prepaid card",
81
+ "Home equity loan or line of credit (HELOC)",
82
+ "Government benefit card",
83
+ "Mortgage debt",
84
+ "Personal line of credit",
85
+ "Home equity loan or line of credit",
86
+ "Federal student loan debt",
87
+ "Private student loan debt",
88
+ "Credit repair services",
89
+ "Title loan",
90
+ "Auto",
91
+ "Vehicle lease",
92
+ "Mortgage",
93
+ "Reverse mortgage",
94
+ "General purpose card",
95
+ "CD (Certificate of Deposit)",
96
+ "Federal student loan",
97
+ "Payroll card",
98
+ "Debt settlement",
99
+ "Check cashing service",
100
+ "Traveler's check or cashier's check",
101
+ "Gift card",
102
+ "(CD) Certificate of deposit",
103
+ "Money order",
104
+ "Foreign currency exchange",
105
+ "Refund anticipation check",
106
+ "Gift or merchant card",
107
+ "Cashing a check without an account",
108
+ "ID prepaid card",
109
+ "Mobile wallet",
110
+ "Government benefit payment card",
111
+ "Pawn loan",
112
+ "Other special purpose card",
113
+ "Check cashing",
114
+ "Credit repair",
115
+ "Traveler’s/Cashier’s checks",
116
+ "Transit card",
117
+ "Student prepaid card",
118
+ "Electronic Benefit Transfer / EBT card",
119
+ "",
120
+ ]
121
+
122
+ _PRODUCT_CATEGORIES = [
123
+ "Credit reporting, credit repair services, or other personal consumer reports",
124
+ "Debt collection",
125
+ "Mortgage",
126
+ "Credit card or prepaid card",
127
+ "Checking or savings account",
128
+ "Credit reporting",
129
+ "Student loan",
130
+ "Money transfer, virtual currency, or money service",
131
+ "Credit card",
132
+ "Vehicle loan or lease",
133
+ "Bank account or service",
134
+ "Payday loan, title loan, or personal loan",
135
+ "Consumer Loan",
136
+ "Payday loan",
137
+ "Money transfers",
138
+ "Prepaid card",
139
+ "Other financial service",
140
+ "Virtual currency",
141
+ ]
142
+
143
+
144
+ class ConsumerComplaints(datasets.GeneratorBasedBuilder):
145
+ """Consumer Complaints dataset."""
146
+
147
+ def _info(self):
148
+ features = datasets.Features(
149
+ {
150
+ "Date Received": datasets.Value("timestamp[s]"),
151
+ "Product": datasets.features.ClassLabel(names=_PRODUCT_CATEGORIES),
152
+ "Sub Product": datasets.features.ClassLabel(names=_SUB_PRODUCT_CATEGORIES),
153
+ "Issue": datasets.Value("string"),
154
+ "Sub Issue": datasets.Value("string"),
155
+ "Complaint Text": datasets.Value("string"),
156
+ "Company Public Response": datasets.Value("string"),
157
+ "Company": datasets.Value("string"),
158
+ "State": datasets.Value("string"),
159
+ "Zip Code": datasets.Value("string"),
160
+ "Tags": datasets.features.ClassLabel(names=_TAGS),
161
+ "Consumer Consent Provided": datasets.Value("string"),
162
+ "Submitted via": datasets.Value("string"),
163
+ "Date Sent To Company": datasets.Value("string"),
164
+ "Company Response To Consumer": datasets.Value("string"),
165
+ "Timely Response": datasets.Value("string"),
166
+ "Consumer Disputed": datasets.Value("string"),
167
+ "Complaint ID": datasets.Value("string"),
168
+ }
169
+ )
170
+ return datasets.DatasetInfo(
171
+ description=_DESCRIPTION,
172
+ features=features,
173
+ homepage=_HOMEPAGE,
174
+ license=_LICENSE,
175
+ citation=_CITATION,
176
+ task_templates=[
177
+ TextClassification(text_column="Complaint Text", label_column="Product"),
178
+ TextClassification(text_column="Complaint Text", label_column="Sub Product"),
179
+ TextClassification(text_column="Complaint Text", label_column="Tags"),
180
+ ],
181
+ )
182
+
183
+ def _split_generators(self, dl_manager):
184
+ path = dl_manager.download_and_extract(_url)
185
+ path = os.path.join(path, "complaints.csv")
186
+ return [
187
+ datasets.SplitGenerator(
188
+ name=datasets.Split.TRAIN,
189
+ gen_kwargs={"filepath": path},
190
+ )
191
+ ]
192
+
193
+ def _generate_examples(self, filepath):
194
+ """Generate consumer complaints examples."""
195
+ with open(filepath, encoding="utf-8") as csv_file:
196
+ csv_reader = csv.reader(
197
+ csv_file, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True
198
+ )
199
+ next(csv_reader) # skip header row
200
+ for id_, row in enumerate(csv_reader):
201
+ (
202
+ date_received,
203
+ product,
204
+ sub_product,
205
+ issue,
206
+ sub_issue,
207
+ complaint_text,
208
+ company_public_response,
209
+ company,
210
+ state,
211
+ zip_code,
212
+ tags,
213
+ consumer_consent_provided,
214
+ submitted_via,
215
+ date_sent_to_company,
216
+ company_response_to_consumer,
217
+ timely_response,
218
+ consumer_disputed,
219
+ complaint_id,
220
+ ) = row
221
+ yield id_, {
222
+ "Date Received": date_received,
223
+ "Product": product,
224
+ "Sub Product": sub_product,
225
+ "Issue": issue,
226
+ "Sub Issue": sub_issue,
227
+ "Complaint Text": complaint_text,
228
+ "Company Public Response": company_public_response,
229
+ "Company": company,
230
+ "State": state,
231
+ "Zip Code": zip_code,
232
+ "Tags": tags,
233
+ "Consumer Consent Provided": consumer_consent_provided,
234
+ "Submitted via": submitted_via,
235
+ "Date Sent To Company": date_sent_to_company,
236
+ "Company Response To Consumer": company_response_to_consumer,
237
+ "Timely Response": timely_response,
238
+ "Consumer Disputed": consumer_disputed,
239
+ "Complaint ID": complaint_id,
240
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"default": {"description": "The Consumer Complaint Database is a collection of complaints about consumer financial products and services that we sent to companies for response. Complaints are published after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first. Complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the Consumer Complaint Database. The database generally updates daily.\nThere are multiple Text Classification problems that can be solved with this dataset:\n- Complaint Type Identification\n- Complaint Sub-Product Identification\n- Complaint from vulnerable or Service-person\n", "citation": "\n", "homepage": "https://www.consumerfinance.gov/data-research/consumer-complaints/", "license": "https://cfpb.github.io/source-code-policy/", "features": {"Date Received": {"dtype": "timestamp[s]", "id": null, "_type": "Value"}, "Product": {"num_classes": 18, "names": ["Credit reporting, credit repair services, or other personal consumer reports", "Debt collection", "Mortgage", "Credit card or prepaid card", "Checking or savings account", "Credit reporting", "Student loan", "Money transfer, virtual currency, or money service", "Credit card", "Vehicle loan or lease", "Bank account or service", "Payday loan, title loan, or personal loan", "Consumer Loan", "Payday loan", "Money transfers", "Prepaid card", "Other financial service", "Virtual currency"], "names_file": null, "id": null, "_type": "ClassLabel"}, "Sub Product": {"num_classes": 77, "names": ["Credit reporting", "General-purpose credit card or charge card", "Checking account", "Other debt", "Second mortgage", "Conventional home mortgage", "I do not know", "Credit card debt", "Medical debt", "Federal student loan servicing", "FHA mortgage", "Conventional fixed mortgage", "Loan", "Other (i.e. phone, health club, etc.)", "Store credit card", "Installment loan", "Credit card", "Medical", "Mobile or digital wallet", "Private student loan", "Non-federal student loan", "Domestic (US) money transfer", "VA mortgage", "Vehicle loan", "Auto debt", "Payday loan", "Conventional adjustable mortgage (ARM)", "Other personal consumer report", "Payday loan debt", "Savings account", "Virtual currency", "Other bank product/service", "Other type of mortgage", "Other banking product or service", "Other mortgage", "International money transfer", "Lease", "General-purpose prepaid card", "Home equity loan or line of credit (HELOC)", "Government benefit card", "Mortgage debt", "Personal line of credit", "Home equity loan or line of credit", "Federal student loan debt", "Private student loan debt", "Credit repair services", "Title loan", "Auto", "Vehicle lease", "Mortgage", "Reverse mortgage", "General purpose card", "CD (Certificate of Deposit)", "Federal student loan", "Payroll card", "Debt settlement", "Check cashing service", "Traveler's check or cashier's check", "Gift card", "(CD) Certificate of deposit", "Money order", "Foreign currency exchange", "Refund anticipation check", "Gift or merchant card", "Cashing a check without an account", "ID prepaid card", "Mobile wallet", "Government benefit payment card", "Pawn loan", "Other special purpose card", "Check cashing", "Credit repair", "Traveler\u2019s/Cashier\u2019s checks", "Transit card", "Student prepaid card", "Electronic Benefit Transfer / EBT card", ""], "names_file": null, "id": null, "_type": "ClassLabel"}, "Issue": {"dtype": "string", "id": null, "_type": "Value"}, "Sub Issue": {"dtype": "string", "id": null, "_type": "Value"}, "Complaint Text": {"dtype": "string", "id": null, "_type": "Value"}, "Company Public Response": {"dtype": "string", "id": null, "_type": "Value"}, "Company": {"dtype": "string", "id": null, "_type": "Value"}, "State": {"dtype": "string", "id": null, "_type": "Value"}, "Zip Code": {"dtype": "string", "id": null, "_type": "Value"}, "Tags": {"num_classes": 4, "names": ["Servicemember", "Older American", "Older American, Servicemember", ""], "names_file": null, "id": null, "_type": "ClassLabel"}, "Consumer Consent Provided": {"dtype": "string", "id": null, "_type": "Value"}, "Submitted via": {"dtype": "string", "id": null, "_type": "Value"}, "Date Sent To Company": {"dtype": "string", "id": null, "_type": "Value"}, "Company Response To Consumer": {"dtype": "string", "id": null, "_type": "Value"}, "Timely Response": {"dtype": "string", "id": null, "_type": "Value"}, "Consumer Disputed": {"dtype": "string", "id": null, "_type": "Value"}, "Complaint ID": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "Complaint Text", "label_column": "Product"}, {"task": "text-classification", "text_column": "Complaint Text", "label_column": "Sub Product"}, {"task": "text-classification", "text_column": "Complaint Text", "label_column": "Tags"}], "builder_name": "consumer_complaints", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1605177353, "num_examples": 2455765, "dataset_name": "consumer_complaints"}}, "download_checksums": {"https://files.consumerfinance.gov/ccdb/complaints.csv.zip": {"num_bytes": 404187716, "checksum": "19a047bf33e413528b2dcb7780020eb4b0739ec13ea95ccc3f638d158a4ef6d3"}}, "download_size": 404187716, "post_processing_size": null, "dataset_size": 1605177353, "size_in_bytes": 2009365069}}
dummy/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d61092f5e369c8fd18976af7f4b3168f549110c1c3198a4e6b137ec638b0249b
3
+ size 1214