nataliaElv HF staff commited on
Commit
189116a
1 Parent(s): 8a3f021

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +233 -71
README.md CHANGED
@@ -1,74 +1,236 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: text
5
- dtype: string
6
- id: field
7
- - name: topics
8
- sequence:
9
- - name: user_id
10
- dtype: string
11
- - name: value
12
- sequence: string
13
- id: suggestion
14
- - name: status
15
- dtype: string
16
- id: question
17
- - name: topics-suggestion
18
- sequence: string
19
- id: suggestion
20
- - name: topics-suggestion-metadata
21
- struct:
22
- - name: type
23
- dtype: string
24
- id: suggestion-metadata
25
- - name: score
26
- dtype: float32
27
- id: suggestion-metadata
28
- - name: agent
29
- dtype: string
30
- id: suggestion-metadata
31
- - name: sentiment
32
- sequence:
33
- - name: user_id
34
- dtype: string
35
- - name: value
36
- dtype: string
37
- id: suggestion
38
- - name: status
39
- dtype: string
40
- id: question
41
- - name: sentiment-suggestion
42
- dtype: string
43
- id: suggestion
44
- - name: sentiment-suggestion-metadata
45
- struct:
46
- - name: type
47
- dtype: string
48
- id: suggestion-metadata
49
- - name: score
50
- dtype: float32
51
- id: suggestion-metadata
52
- - name: agent
53
- dtype: string
54
- id: suggestion-metadata
55
- - name: external_id
56
- dtype: string
57
- id: external_id
58
- - name: metadata
59
- dtype: string
60
- splits:
61
- - name: train
62
- num_bytes: 556171
63
- num_examples: 3080
64
- download_size: 117842
65
- dataset_size: 556171
66
- configs:
67
- - config_name: default
68
- data_files:
69
- - split: train
70
- path: data/train-*
71
  ---
72
- # Dataset Card for "setfit_tutorial"
73
 
74
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ size_categories: 1K<n<10K
3
+ tags:
4
+ - rlfh
5
+ - argilla
6
+ - human-feedback
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ---
 
8
 
9
+ # Dataset Card for setfit_tutorial
10
+
11
+ This dataset has been created with [Argilla](https://docs.argilla.io).
12
+
13
+ As shown in the sections below, this dataset can be loaded into Argilla as explained in [Load with Argilla](#load-with-argilla), or used directly with the `datasets` library in [Load with `datasets`](#load-with-datasets).
14
+
15
+ ## Dataset Description
16
+
17
+ - **Homepage:** https://argilla.io
18
+ - **Repository:** https://github.com/argilla-io/argilla
19
+ - **Paper:**
20
+ - **Leaderboard:**
21
+ - **Point of Contact:**
22
+
23
+ ### Dataset Summary
24
+
25
+ This dataset contains:
26
+
27
+ * A dataset configuration file conforming to the Argilla dataset format named `argilla.yaml`. This configuration file will be used to configure the dataset when using the `FeedbackDataset.from_huggingface` method in Argilla.
28
+
29
+ * Dataset records in a format compatible with HuggingFace `datasets`. These records will be loaded automatically when using `FeedbackDataset.from_huggingface` and can be loaded independently using the `datasets` library via `load_dataset`.
30
+
31
+ * The [annotation guidelines](#annotation-guidelines) that have been used for building and curating the dataset, if they've been defined in Argilla.
32
+
33
+ ### Load with Argilla
34
+
35
+ To load with Argilla, you'll just need to install Argilla as `pip install argilla --upgrade` and then use the following code:
36
+
37
+ ```python
38
+ import argilla as rg
39
+
40
+ ds = rg.FeedbackDataset.from_huggingface("nataliaElv/setfit_tutorial")
41
+ ```
42
+
43
+ ### Load with `datasets`
44
+
45
+ To load this dataset with `datasets`, you'll just need to install `datasets` as `pip install datasets --upgrade` and then use the following code:
46
+
47
+ ```python
48
+ from datasets import load_dataset
49
+
50
+ ds = load_dataset("nataliaElv/setfit_tutorial")
51
+ ```
52
+
53
+ ### Supported Tasks and Leaderboards
54
+
55
+ This dataset can contain [multiple fields, questions and responses](https://docs.argilla.io/en/latest/guides/llms/conceptual_guides/data_model.html) so it can be used for different NLP tasks, depending on the configuration. The dataset structure is described in the [Dataset Structure section](#dataset-structure).
56
+
57
+ There are no leaderboards associated with this dataset.
58
+
59
+ ### Languages
60
+
61
+ [More Information Needed]
62
+
63
+ ## Dataset Structure
64
+
65
+ ### Data in Argilla
66
+
67
+ The dataset is created in Argilla with: **fields**, **questions**, **suggestions**, and **guidelines**.
68
+
69
+ The **fields** are the dataset records themselves, for the moment just text fields are suppported. These are the ones that will be used to provide responses to the questions.
70
+
71
+ | Field Name | Title | Type | Required | Markdown |
72
+ | ---------- | ----- | ---- | -------- | -------- |
73
+ | text | Text | TextField | True | False |
74
+
75
+
76
+ The **questions** are the questions that will be asked to the annotators. They can be of different types, such as rating, text, single choice, or multiple choice.
77
+
78
+ | Question Name | Title | Type | Required | Description | Values/Labels |
79
+ | ------------- | ----- | ---- | -------- | ----------- | ------------- |
80
+ | topics | Select the topic(s) of the request | MultiLabelQuestion | True | N/A | ['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'] |
81
+ | sentiment | What is the sentiment of the message? | LabelQuestion | True | N/A | ['positive', 'neutral', 'negative'] |
82
+
83
+
84
+ **✨ NEW** Additionally, we also have **suggestions**, which are linked to the existing questions, and so on, named appending "-suggestion" and "-suggestion-metadata" to those, containing the value/s of the suggestion and its metadata, respectively. So on, the possible values are the same as in the table above.
85
+
86
+ Finally, the **guidelines** are just a plain string that can be used to provide instructions to the annotators. Find those in the [annotation guidelines](#annotation-guidelines) section.
87
+
88
+ ### Data Instances
89
+
90
+ An example of a dataset instance in Argilla looks as follows:
91
+
92
+ ```json
93
+ {
94
+ "external_id": null,
95
+ "fields": {
96
+ "text": "How do I locate my card?"
97
+ },
98
+ "id": null,
99
+ "metadata": {},
100
+ "responses": [],
101
+ "suggestions": [
102
+ {
103
+ "agent": null,
104
+ "question_id": null,
105
+ "question_name": "topics",
106
+ "score": null,
107
+ "type": null,
108
+ "value": []
109
+ },
110
+ {
111
+ "agent": null,
112
+ "question_id": null,
113
+ "question_name": "sentiment",
114
+ "score": null,
115
+ "type": null,
116
+ "value": "positive"
117
+ }
118
+ ]
119
+ }
120
+ ```
121
+
122
+ While the same record in HuggingFace `datasets` looks as follows:
123
+
124
+ ```json
125
+ {
126
+ "external_id": null,
127
+ "metadata": null,
128
+ "sentiment": null,
129
+ "sentiment-suggestion": "positive",
130
+ "sentiment-suggestion-metadata": {
131
+ "agent": null,
132
+ "score": null,
133
+ "type": null
134
+ },
135
+ "text": "How do I locate my card?",
136
+ "topics": null,
137
+ "topics-suggestion": [],
138
+ "topics-suggestion-metadata": {
139
+ "agent": null,
140
+ "score": null,
141
+ "type": null
142
+ }
143
+ }
144
+ ```
145
+
146
+ ### Data Fields
147
+
148
+ Among the dataset fields, we differentiate between the following:
149
+
150
+ * **Fields:** These are the dataset records themselves, for the moment just text fields are suppported. These are the ones that will be used to provide responses to the questions.
151
+
152
+ * **text** is of type `TextField`.
153
+
154
+ * **Questions:** These are the questions that will be asked to the annotators. They can be of different types, such as `RatingQuestion`, `TextQuestion`, `LabelQuestion`, `MultiLabelQuestion`, and `RankingQuestion`.
155
+
156
+ * **topics** is of type `MultiLabelQuestion` with the following allowed values ['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'].
157
+ * **sentiment** is of type `LabelQuestion` with the following allowed values ['positive', 'neutral', 'negative'].
158
+
159
+ * **✨ NEW** **Suggestions:** As of Argilla 1.13.0, the suggestions have been included to provide the annotators with suggestions to ease or assist during the annotation process. Suggestions are linked to the existing questions, are always optional, and contain not just the suggestion itself, but also the metadata linked to it, if applicable.
160
+
161
+ * (optional) **topics-suggestion** is of type `multi_label_selection` with the following allowed values ['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'].
162
+ * (optional) **sentiment-suggestion** is of type `label_selection` with the following allowed values ['positive', 'neutral', 'negative'].
163
+
164
+ Additionally, we also have one more field which is optional and is the following:
165
+
166
+ * **external_id:** This is an optional field that can be used to provide an external ID for the dataset record. This can be useful if you want to link the dataset record to an external resource, such as a database or a file.
167
+
168
+ ### Data Splits
169
+
170
+ The dataset contains a single split, which is `train`.
171
+
172
+ ## Dataset Creation
173
+
174
+ ### Curation Rationale
175
+
176
+ [More Information Needed]
177
+
178
+ ### Source Data
179
+
180
+ #### Initial Data Collection and Normalization
181
+
182
+ [More Information Needed]
183
+
184
+ #### Who are the source language producers?
185
+
186
+ [More Information Needed]
187
+
188
+ ### Annotations
189
+
190
+ #### Annotation guidelines
191
+
192
+ [More Information Needed]
193
+
194
+ #### Annotation process
195
+
196
+ [More Information Needed]
197
+
198
+ #### Who are the annotators?
199
+
200
+ [More Information Needed]
201
+
202
+ ### Personal and Sensitive Information
203
+
204
+ [More Information Needed]
205
+
206
+ ## Considerations for Using the Data
207
+
208
+ ### Social Impact of Dataset
209
+
210
+ [More Information Needed]
211
+
212
+ ### Discussion of Biases
213
+
214
+ [More Information Needed]
215
+
216
+ ### Other Known Limitations
217
+
218
+ [More Information Needed]
219
+
220
+ ## Additional Information
221
+
222
+ ### Dataset Curators
223
+
224
+ [More Information Needed]
225
+
226
+ ### Licensing Information
227
+
228
+ [More Information Needed]
229
+
230
+ ### Citation Information
231
+
232
+ [More Information Needed]
233
+
234
+ ### Contributions
235
+
236
+ [More Information Needed]