burtenshaw HF Staff commited on
Commit
b50462f
·
verified ·
1 Parent(s): 057a2ac

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +244 -59
README.md CHANGED
@@ -1,61 +1,246 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: id
5
- dtype: string
6
- - name: _server_id
7
- dtype: string
8
- - name: text
9
- dtype: string
10
- - name: label.responses
11
- sequence: string
12
- - name: label.responses.users
13
- sequence: string
14
- - name: comment.suggestion
15
- dtype: string
16
- - name: comment.suggestion.score
17
- dtype: float64
18
- - name: comment.suggestion.agent
19
- dtype: 'null'
20
- - name: topics.suggestion
21
- sequence: string
22
- - name: topics.suggestion.score
23
- sequence: float64
24
- - name: topics.suggestion.agent
25
- dtype: 'null'
26
- - name: span.suggestion.score
27
- dtype: 'null'
28
- - name: rating.suggestion.agent
29
- dtype: 'null'
30
- - name: ranking.suggestion
31
- sequence: string
32
- - name: rating.suggestion
33
- dtype: int64
34
- - name: rating.suggestion.score
35
- dtype: 'null'
36
- - name: ranking.suggestion.score
37
- dtype: 'null'
38
- - name: span.suggestion
39
- list:
40
- - name: end
41
- dtype: int64
42
- - name: label
43
- dtype: string
44
- - name: start
45
- dtype: int64
46
- - name: ranking.suggestion.agent
47
- dtype: 'null'
48
- - name: span.suggestion.agent
49
- dtype: 'null'
50
- splits:
51
- - name: train
52
- num_bytes: 916
53
- num_examples: 3
54
- download_size: 13451
55
- dataset_size: 916
56
- configs:
57
- - config_name: default
58
- data_files:
59
- - split: train
60
- path: data/train-*
61
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ size_categories: n<1K
3
+ tags:
4
+ - rlfh
5
+ - argilla
6
+ - human-feedback
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ---
8
+
9
+ # Dataset Card for test-argilla-dataset
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_v1 as rg
39
+
40
+ ds = rg.FeedbackDataset.from_huggingface("burtenshaw/test-argilla-dataset")
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("burtenshaw/test-argilla-dataset")
51
+ ```
52
+
53
+ ### Supported Tasks and Leaderboards
54
+
55
+ This dataset can contain [multiple fields, questions and responses](https://docs.argilla.io/en/latest/conceptual_guides/data_model.html#feedback-dataset) 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**, **metadata**, **vectors**, and **guidelines**.
68
+
69
+ The **fields** are the dataset records themselves, for the moment just text fields are supported. 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 | text | 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, label_selection, multi_label_selection, or ranking.
77
+
78
+ | Question Name | Title | Type | Required | Description | Values/Labels |
79
+ | ------------- | ----- | ---- | -------- | ----------- | ------------- |
80
+ | label | label | label_selection | True | N/A | ['positive', 'negative'] |
81
+ | rating | rating | rating | True | N/A | [1, 2, 3, 4, 5] |
82
+ | ranking | ranking | ranking | True | N/A | ['label1', 'label2', 'label3'] |
83
+ | comment | comment | text | True | N/A | N/A |
84
+ | topics | topics | multi_label_selection | True | N/A | ['topic1', 'topic2', 'topic3'] |
85
+ | span | span | span | True | N/A | N/A |
86
+
87
+
88
+ The **suggestions** are human or machine generated recommendations for each question to assist the annotator during the annotation process, so those are always linked to the existing questions, and 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, but the column name is appended with "-suggestion" and the metadata is appended with "-suggestion-metadata".
89
+
90
+ The **metadata** is a dictionary that can be used to provide additional information about the dataset record. This can be useful to provide additional context to the annotators, or to provide additional information about the dataset record itself. For example, you can use this to provide a link to the original source of the dataset record, or to provide additional information about the dataset record itself, such as the author, the date, or the source. The metadata is always optional, and can be potentially linked to the `metadata_properties` defined in the dataset configuration file in `argilla.yaml`.
91
+
92
+
93
+
94
+ | Metadata Name | Title | Type | Values | Visible for Annotators |
95
+ | ------------- | ----- | ---- | ------ | ---------------------- |
96
+
97
+
98
+ The **guidelines**, are optional as well, and are just a plain string that can be used to provide instructions to the annotators. Find those in the [annotation guidelines](#annotation-guidelines) section.
99
+
100
+ ### Data Instances
101
+
102
+ An example of a dataset instance in Argilla looks as follows:
103
+
104
+ ```json
105
+ "{\"id\":\"c384826c-19ef-41bf-a8d8-b9ac7c1d1e1a\",\"inserted_at\":null,\"updated_at\":null,\"fields\":{\"text\":\"Hello World, how are you?\"},\"metadata\":{},\"vectors\":{},\"responses\":[{\"values\":{\"label\":{\"value\":\"positive\"}},\"status\":\"draft\",\"user_id\":\"1a4d1b86-4392-41f4-8e17-4a9a635c3e81\"}],\"suggestions\":[{\"value\":\"I\u0027m doing great, thank you!\",\"question_name\":\"comment\",\"type\":null,\"score\":null,\"agent\":null,\"id\":\"1aeab5cf-3905-4cea-9c5d-25c1c69ec937\",\"question_id\":\"8b4538da-0f6b-4ccd-a4e2-5309ec5756cf\"},{\"value\":[\"topic1\",\"topic2\"],\"question_name\":\"topics\",\"type\":null,\"score\":[0.9,0.8],\"agent\":null,\"id\":\"ad077b9f-1b06-4b02-b305-f11d9811e967\",\"question_id\":\"c0f10135-b3b4-45c2-b745-1cc166fa1402\"}],\"external_id\":\"f9a02dda-dd95-4a93-b73b-d25bbfe66015\"}"
106
+ ```
107
+
108
+ While the same record in HuggingFace `datasets` looks as follows:
109
+
110
+ ```json
111
+ {
112
+ "_server_id": "c384826c-19ef-41bf-a8d8-b9ac7c1d1e1a",
113
+ "comment.suggestion": "I\u0027m doing great, thank you!",
114
+ "comment.suggestion.agent": null,
115
+ "comment.suggestion.score": null,
116
+ "id": "f9a02dda-dd95-4a93-b73b-d25bbfe66015",
117
+ "label.responses": [
118
+ "positive"
119
+ ],
120
+ "label.responses.users": [
121
+ "1a4d1b86-4392-41f4-8e17-4a9a635c3e81"
122
+ ],
123
+ "ranking.suggestion": null,
124
+ "ranking.suggestion.agent": null,
125
+ "ranking.suggestion.score": null,
126
+ "rating.suggestion": null,
127
+ "rating.suggestion.agent": null,
128
+ "rating.suggestion.score": null,
129
+ "span.suggestion": null,
130
+ "span.suggestion.agent": null,
131
+ "span.suggestion.score": null,
132
+ "text": "Hello World, how are you?",
133
+ "topics.suggestion": [
134
+ "topic1",
135
+ "topic2"
136
+ ],
137
+ "topics.suggestion.agent": null,
138
+ "topics.suggestion.score": [
139
+ 0.9,
140
+ 0.8
141
+ ]
142
+ }
143
+ ```
144
+
145
+ ### Data Fields
146
+
147
+ Among the dataset fields, we differentiate between the following:
148
+
149
+ * **Fields:** These are the dataset records themselves, for the moment just text fields are supported. These are the ones that will be used to provide responses to the questions.
150
+
151
+ * **text** is of type `text`.
152
+
153
+ * **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`.
154
+
155
+ * **label** is of type `label_selection` with the following allowed values ['positive', 'negative'].
156
+ * **rating** is of type `rating` with the following allowed values [1, 2, 3, 4, 5].
157
+ * **ranking** is of type `ranking` with the following allowed values ['label1', 'label2', 'label3'].
158
+ * **comment** is of type `text`.
159
+ * **topics** is of type `multi_label_selection` with the following allowed values ['topic1', 'topic2', 'topic3'].
160
+ * **span** is of type `span`.
161
+
162
+ * **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.
163
+
164
+ * (optional) **label-suggestion** is of type `label_selection` with the following allowed values ['positive', 'negative'].
165
+ * (optional) **rating-suggestion** is of type `rating` with the following allowed values [1, 2, 3, 4, 5].
166
+ * (optional) **ranking-suggestion** is of type `ranking` with the following allowed values ['label1', 'label2', 'label3'].
167
+ * (optional) **comment-suggestion** is of type `text`.
168
+ * (optional) **topics-suggestion** is of type `multi_label_selection` with the following allowed values ['topic1', 'topic2', 'topic3'].
169
+ * (optional) **span-suggestion** is of type `span`.
170
+
171
+
172
+
173
+ Additionally, we also have two more fields that are optional and are the following:
174
+
175
+ * **metadata:** This is an optional field that can be used to provide additional information about the dataset record. This can be useful to provide additional context to the annotators, or to provide additional information about the dataset record itself. For example, you can use this to provide a link to the original source of the dataset record, or to provide additional information about the dataset record itself, such as the author, the date, or the source. The metadata is always optional, and can be potentially linked to the `metadata_properties` defined in the dataset configuration file in `argilla.yaml`.
176
+ * **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.
177
+
178
+ ### Data Splits
179
+
180
+ The dataset contains a single split, which is `train`.
181
+
182
+ ## Dataset Creation
183
+
184
+ ### Curation Rationale
185
+
186
+ [More Information Needed]
187
+
188
+ ### Source Data
189
+
190
+ #### Initial Data Collection and Normalization
191
+
192
+ [More Information Needed]
193
+
194
+ #### Who are the source language producers?
195
+
196
+ [More Information Needed]
197
+
198
+ ### Annotations
199
+
200
+ #### Annotation guidelines
201
+
202
+ [More Information Needed]
203
+
204
+ #### Annotation process
205
+
206
+ [More Information Needed]
207
+
208
+ #### Who are the annotators?
209
+
210
+ [More Information Needed]
211
+
212
+ ### Personal and Sensitive Information
213
+
214
+ [More Information Needed]
215
+
216
+ ## Considerations for Using the Data
217
+
218
+ ### Social Impact of Dataset
219
+
220
+ [More Information Needed]
221
+
222
+ ### Discussion of Biases
223
+
224
+ [More Information Needed]
225
+
226
+ ### Other Known Limitations
227
+
228
+ [More Information Needed]
229
+
230
+ ## Additional Information
231
+
232
+ ### Dataset Curators
233
+
234
+ [More Information Needed]
235
+
236
+ ### Licensing Information
237
+
238
+ [More Information Needed]
239
+
240
+ ### Citation Information
241
+
242
+ [More Information Needed]
243
+
244
+ ### Contributions
245
+
246
+ [More Information Needed]