Upload folder using huggingface_hub
Browse files- .argilla/dataset.json +16 -0
- .argilla/settings.json +130 -0
- .argilla/version.json +3 -0
- README.md +152 -41
.argilla/dataset.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"id": "29565928-460a-4729-b1fc-67e218a59c6a",
|
3 |
+
"name": "bsc_spanish_legal",
|
4 |
+
"guidelines": "These are some guidelines.",
|
5 |
+
"allow_extra_metadata": false,
|
6 |
+
"status": "ready",
|
7 |
+
"distribution": {
|
8 |
+
"strategy": "overlap",
|
9 |
+
"min_submitted": 1
|
10 |
+
},
|
11 |
+
"metadata": null,
|
12 |
+
"workspace_id": "b91ebfc5-755a-4e57-b364-86d98ab5ad73",
|
13 |
+
"last_activity_at": "2025-05-13T15:09:07.125451",
|
14 |
+
"inserted_at": "2025-05-13T15:09:05.322996",
|
15 |
+
"updated_at": "2025-05-13T15:09:07.125451"
|
16 |
+
}
|
.argilla/settings.json
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"guidelines": "These are some guidelines.",
|
3 |
+
"allow_extra_metadata": false,
|
4 |
+
"distribution": {
|
5 |
+
"strategy": "overlap",
|
6 |
+
"min_submitted": 1
|
7 |
+
},
|
8 |
+
"fields": [
|
9 |
+
{
|
10 |
+
"id": "9d774bbe-d86d-4b7e-8322-3cb2704feda7",
|
11 |
+
"name": "law_cont",
|
12 |
+
"title": "law_cont",
|
13 |
+
"required": true,
|
14 |
+
"settings": {
|
15 |
+
"type": "text",
|
16 |
+
"use_markdown": false
|
17 |
+
},
|
18 |
+
"dataset_id": "29565928-460a-4729-b1fc-67e218a59c6a",
|
19 |
+
"inserted_at": "2025-05-13T15:09:05.817505",
|
20 |
+
"updated_at": "2025-05-13T15:09:05.817505"
|
21 |
+
}
|
22 |
+
],
|
23 |
+
"questions": [
|
24 |
+
{
|
25 |
+
"id": "a65873b0-b282-462d-a222-87f3dc71c6a0",
|
26 |
+
"name": "label",
|
27 |
+
"title": "label",
|
28 |
+
"description": null,
|
29 |
+
"required": true,
|
30 |
+
"settings": {
|
31 |
+
"type": "span",
|
32 |
+
"field": "law_cont",
|
33 |
+
"options": [
|
34 |
+
{
|
35 |
+
"value": "PERSON",
|
36 |
+
"text": "Person",
|
37 |
+
"description": null
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"value": "ORG",
|
41 |
+
"text": "Organization",
|
42 |
+
"description": null
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"value": "LOC",
|
46 |
+
"text": "Location",
|
47 |
+
"description": null
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"value": "DATE",
|
51 |
+
"text": "Date",
|
52 |
+
"description": null
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"value": "REF",
|
56 |
+
"text": "Reference",
|
57 |
+
"description": null
|
58 |
+
}
|
59 |
+
],
|
60 |
+
"visible_options": 5,
|
61 |
+
"allow_overlapping": false,
|
62 |
+
"allow_character_annotation": true
|
63 |
+
},
|
64 |
+
"dataset_id": "29565928-460a-4729-b1fc-67e218a59c6a",
|
65 |
+
"inserted_at": "2025-05-13T15:09:06.172720",
|
66 |
+
"updated_at": "2025-05-13T15:09:06.172720"
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"id": "4a48af17-4592-4508-9e94-91613f43ecc4",
|
70 |
+
"name": "label_multi",
|
71 |
+
"title": "label_multi",
|
72 |
+
"description": null,
|
73 |
+
"required": true,
|
74 |
+
"settings": {
|
75 |
+
"type": "multi_label_selection",
|
76 |
+
"options": [
|
77 |
+
{
|
78 |
+
"value": "RIGHT",
|
79 |
+
"text": "Right",
|
80 |
+
"description": null
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"value": "DUTY",
|
84 |
+
"text": "Duty",
|
85 |
+
"description": null
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"value": "SANC",
|
89 |
+
"text": "Sanction",
|
90 |
+
"description": null
|
91 |
+
}
|
92 |
+
],
|
93 |
+
"visible_options": 3,
|
94 |
+
"options_order": "natural"
|
95 |
+
},
|
96 |
+
"dataset_id": "29565928-460a-4729-b1fc-67e218a59c6a",
|
97 |
+
"inserted_at": "2025-05-13T15:09:06.404388",
|
98 |
+
"updated_at": "2025-05-13T15:09:06.404388"
|
99 |
+
}
|
100 |
+
],
|
101 |
+
"metadata": [
|
102 |
+
{
|
103 |
+
"id": "faab1be9-b39d-492d-bdaf-93c77e950be2",
|
104 |
+
"name": "content",
|
105 |
+
"title": "Content",
|
106 |
+
"settings": {
|
107 |
+
"type": "terms",
|
108 |
+
"values": null
|
109 |
+
},
|
110 |
+
"visible_for_annotators": true,
|
111 |
+
"dataset_id": "29565928-460a-4729-b1fc-67e218a59c6a",
|
112 |
+
"inserted_at": "2025-05-13T15:09:06.658577",
|
113 |
+
"updated_at": "2025-05-13T15:09:06.658577"
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"id": "80ec80f7-9176-4f36-9183-4458897f863d",
|
117 |
+
"name": "author",
|
118 |
+
"title": "Author",
|
119 |
+
"settings": {
|
120 |
+
"type": "terms",
|
121 |
+
"values": null
|
122 |
+
},
|
123 |
+
"visible_for_annotators": true,
|
124 |
+
"dataset_id": "29565928-460a-4729-b1fc-67e218a59c6a",
|
125 |
+
"inserted_at": "2025-05-13T15:09:06.921360",
|
126 |
+
"updated_at": "2025-05-13T15:09:06.921360"
|
127 |
+
}
|
128 |
+
],
|
129 |
+
"vectors": []
|
130 |
+
}
|
.argilla/version.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"argilla": "2.8.0"
|
3 |
+
}
|
README.md
CHANGED
@@ -1,43 +1,154 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
- name: status
|
7 |
-
dtype: string
|
8 |
-
- name: inserted_at
|
9 |
-
dtype: timestamp[us]
|
10 |
-
- name: updated_at
|
11 |
-
dtype: timestamp[us]
|
12 |
-
- name: _server_id
|
13 |
-
dtype: string
|
14 |
-
- name: law_cont
|
15 |
-
dtype: string
|
16 |
-
- name: label.responses
|
17 |
-
dtype: 'null'
|
18 |
-
- name: label.responses.users
|
19 |
-
dtype: 'null'
|
20 |
-
- name: label.responses.status
|
21 |
-
dtype: 'null'
|
22 |
-
- name: label_multi.responses
|
23 |
-
dtype: 'null'
|
24 |
-
- name: label_multi.responses.users
|
25 |
-
dtype: 'null'
|
26 |
-
- name: label_multi.responses.status
|
27 |
-
dtype: 'null'
|
28 |
-
- name: metadata.content
|
29 |
-
sequence: string
|
30 |
-
- name: metadata.author
|
31 |
-
sequence: string
|
32 |
-
splits:
|
33 |
-
- name: train
|
34 |
-
num_bytes: 17306883
|
35 |
-
num_examples: 25271
|
36 |
-
download_size: 7908488
|
37 |
-
dataset_size: 17306883
|
38 |
-
configs:
|
39 |
-
- config_name: default
|
40 |
-
data_files:
|
41 |
-
- split: train
|
42 |
-
path: data/train-*
|
43 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
tags:
|
3 |
+
- rlfh
|
4 |
+
- argilla
|
5 |
+
- human-feedback
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
---
|
7 |
+
|
8 |
+
# Dataset Card for bsc_spanish_legal_non_annotated
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
This dataset has been created with [Argilla](https://github.com/argilla-io/argilla). As shown in the sections below, this dataset can be loaded into your Argilla server as explained in [Load with Argilla](#load-with-argilla), or used directly with the `datasets` library in [Load with `datasets`](#load-with-datasets).
|
17 |
+
|
18 |
+
|
19 |
+
## Using this dataset with Argilla
|
20 |
+
|
21 |
+
To load with Argilla, you'll just need to install Argilla as `pip install argilla --upgrade` and then use the following code:
|
22 |
+
|
23 |
+
```python
|
24 |
+
import argilla as rg
|
25 |
+
|
26 |
+
ds = rg.Dataset.from_hub("javierbarbaesparcia/bsc_spanish_legal_non_annotated", settings="auto")
|
27 |
+
```
|
28 |
+
|
29 |
+
This will load the settings and records from the dataset repository and push them to you Argilla server for exploration and annotation.
|
30 |
+
|
31 |
+
## Using this dataset with `datasets`
|
32 |
+
|
33 |
+
To load the records of this dataset with `datasets`, you'll just need to install `datasets` as `pip install datasets --upgrade` and then use the following code:
|
34 |
+
|
35 |
+
```python
|
36 |
+
from datasets import load_dataset
|
37 |
+
|
38 |
+
ds = load_dataset("javierbarbaesparcia/bsc_spanish_legal_non_annotated")
|
39 |
+
```
|
40 |
+
|
41 |
+
This will only load the records of the dataset, but not the Argilla settings.
|
42 |
+
|
43 |
+
## Dataset Structure
|
44 |
+
|
45 |
+
This dataset repo contains:
|
46 |
+
|
47 |
+
* Dataset records in a format compatible with HuggingFace `datasets`. These records will be loaded automatically when using `rg.Dataset.from_hub` and can be loaded independently using the `datasets` library via `load_dataset`.
|
48 |
+
* The [annotation guidelines](#annotation-guidelines) that have been used for building and curating the dataset, if they've been defined in Argilla.
|
49 |
+
* A dataset configuration folder conforming to the Argilla dataset format in `.argilla`.
|
50 |
+
|
51 |
+
The dataset is created in Argilla with: **fields**, **questions**, **suggestions**, **metadata**, **vectors**, and **guidelines**.
|
52 |
+
|
53 |
+
### Fields
|
54 |
+
|
55 |
+
The **fields** are the features or text of a dataset's records. For example, the 'text' column of a text classification dataset of the 'prompt' column of an instruction following dataset.
|
56 |
+
|
57 |
+
| Field Name | Title | Type | Required |
|
58 |
+
| ---------- | ----- | ---- | -------- |
|
59 |
+
| law_cont | law_cont | text | True |
|
60 |
+
|
61 |
+
|
62 |
+
### Questions
|
63 |
+
|
64 |
+
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.
|
65 |
+
|
66 |
+
| Question Name | Title | Type | Required | Description | Values/Labels |
|
67 |
+
| ------------- | ----- | ---- | -------- | ----------- | ------------- |
|
68 |
+
| label | label | span | True | N/A | ['PERSON', 'ORG', 'LOC', 'DATE', 'REF'] |
|
69 |
+
| label_multi | label_multi | multi_label_selection | True | N/A | ['RIGHT', 'DUTY', 'SANC'] |
|
70 |
+
|
71 |
+
|
72 |
+
<!-- check length of metadata properties -->
|
73 |
+
|
74 |
+
### Metadata
|
75 |
+
|
76 |
+
The **metadata** is a dictionary that can be used to provide additional information about the dataset record.
|
77 |
+
| Metadata Name | Title | Type | Values | Visible for Annotators |
|
78 |
+
| ------------- | ----- | ---- | ------ | ---------------------- |
|
79 |
+
| content | Content | terms | - | True |
|
80 |
+
| author | Author | terms | - | True |
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
|
85 |
+
|
86 |
+
### Data Splits
|
87 |
+
|
88 |
+
The dataset contains a single split, which is `train`.
|
89 |
+
|
90 |
+
## Dataset Creation
|
91 |
+
|
92 |
+
### Curation Rationale
|
93 |
+
|
94 |
+
[More Information Needed]
|
95 |
+
|
96 |
+
### Source Data
|
97 |
+
|
98 |
+
#### Initial Data Collection and Normalization
|
99 |
+
|
100 |
+
[More Information Needed]
|
101 |
+
|
102 |
+
#### Who are the source language producers?
|
103 |
+
|
104 |
+
[More Information Needed]
|
105 |
+
|
106 |
+
### Annotations
|
107 |
+
|
108 |
+
#### Annotation guidelines
|
109 |
+
|
110 |
+
These are some guidelines.
|
111 |
+
|
112 |
+
#### Annotation process
|
113 |
+
|
114 |
+
[More Information Needed]
|
115 |
+
|
116 |
+
#### Who are the annotators?
|
117 |
+
|
118 |
+
[More Information Needed]
|
119 |
+
|
120 |
+
### Personal and Sensitive Information
|
121 |
+
|
122 |
+
[More Information Needed]
|
123 |
+
|
124 |
+
## Considerations for Using the Data
|
125 |
+
|
126 |
+
### Social Impact of Dataset
|
127 |
+
|
128 |
+
[More Information Needed]
|
129 |
+
|
130 |
+
### Discussion of Biases
|
131 |
+
|
132 |
+
[More Information Needed]
|
133 |
+
|
134 |
+
### Other Known Limitations
|
135 |
+
|
136 |
+
[More Information Needed]
|
137 |
+
|
138 |
+
## Additional Information
|
139 |
+
|
140 |
+
### Dataset Curators
|
141 |
+
|
142 |
+
[More Information Needed]
|
143 |
+
|
144 |
+
### Licensing Information
|
145 |
+
|
146 |
+
[More Information Needed]
|
147 |
+
|
148 |
+
### Citation Information
|
149 |
+
|
150 |
+
[More Information Needed]
|
151 |
+
|
152 |
+
### Contributions
|
153 |
+
|
154 |
+
[More Information Needed]
|