Update README.md
Browse files
README.md
CHANGED
@@ -16,4 +16,209 @@ configs:
|
|
16 |
data_files:
|
17 |
- split: train
|
18 |
path: data/train-*
|
|
|
|
|
|
|
19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
data_files:
|
17 |
- split: train
|
18 |
path: data/train-*
|
19 |
+
license: cc-by-nc-sa-4.0
|
20 |
+
language:
|
21 |
+
- es
|
22 |
---
|
23 |
+
# Dataset Card for Es-Inclusive-Language-it
|
24 |
+
This dataset is the instructions version of the dataset [Es-Inclusive-Language](https://huggingface.co/datasets/somosnlp/es-inclusive-language).
|
25 |
+
In this version there are two columns of data: _pregunta_ y _respuesta_.
|
26 |
+
The column `pregunta` contains the input as a prompt giving instructions to rewrite a piece of spanish text to the inclusive version of the same text.
|
27 |
+
The expected output, i.e. the text in inclusive language, is given in the column `respuesta`.
|
28 |
+
|
29 |
+
Find below the dataset card for es-inclusive-language dataset.
|
30 |
+
|
31 |
+
# Dataset Card for Es-Inclusive-Language
|
32 |
+
Languages are powerful tools to communicate ideas, but their use is not impartial. The selection of words carries inherent biases and reflects subjective perspectives. In some cases, language is wielded to enforce ideologies, marginalize certain groups, or promote specific political agendas.
|
33 |
+
|
34 |
+
Spanish is not the exception to that. For instance, when we say “los alumnos” or “los ingenieros”, we are excluding women from those groups. Similarly, expressions such as “los gitanos” o “los musulmanes” perpetuate discrimination against these communities.
|
35 |
+
In response to these linguistic challenges, this dataset offers neutral alternatives in accordance with official guidelines on inclusive language from various Spanish speaking countries. Its purpose is to provide grammatically correct and inclusive solutions to situations where our language choices might otherwise be exclusive.
|
36 |
+
|
37 |
+
This dataset consists of pairs of texts with one entry featuring exclusive language and the other one its corresponding inclusive rewrite. All pairs are tagged with the origin (source) of the data and, in order to account for completeness of inclusive translation, also with labels for translation difficulty.
|
38 |
+
|
39 |
+
This is a tool that contributes to the Sustainable Development Goals number five (_Achieve gender equality and empower all women and girls_) and ten (_Reduce inequality within and among countries_).
|
40 |
+
|
41 |
+
|
42 |
+
## Dataset Details
|
43 |
+
### Dataset Description
|
44 |
+
- Curated by: Andrés Martínez Fernández-Salguero, Gaia Quintana Fleitas, Miguel López Pérez, Imanuel Rozenberg and Josué Sauca
|
45 |
+
- Funded by: SomosNLP, HuggingFace, Argilla
|
46 |
+
- Language(s) (NLP): Spanish (`es-ES`, `es-AR`, `es-MX`, `es-CR`, `es-CL`)
|
47 |
+
- License: cc-by-nc-sa-4.0
|
48 |
+
|
49 |
+
### Dataset Sources
|
50 |
+
- Repository: https://github.com/Andresmfs/es-inclusive-language-dataset-creation
|
51 |
+
- Video presentation: https://www.youtube.com/watch?v=7rrNGJIXEHU
|
52 |
+
|
53 |
+
## Uses
|
54 |
+
### Direct Use
|
55 |
+
This dataset can be used to fine-tune LLMs to perform text2text generation tasks, specifically to train models that are able to rewrite Spanish texts using inclusive language.
|
56 |
+
|
57 |
+
### Out-of-Scope Use
|
58 |
+
This dataset is specifically designed for translating Spanish texts to Spanish texts in inclusive language.
|
59 |
+
Using the dataset for unrelated tasks is considered out of scope.
|
60 |
+
This dataset can not be used with commercial purposes, it is intended for research or educational purposes only.
|
61 |
+
|
62 |
+
## Dataset Structure
|
63 |
+
This dataset consists of pairs of texts with one entry featuring exclusive language and the other one its corresponding inclusive rewrite. All pairs are tagged with the origin (source) of the data and, in order to account for completeness of inclusive translation, also with labels for translation difficulty.
|
64 |
+
|
65 |
+
The dataset has a total of 4196 rows and contains the following columns:
|
66 |
+
- `gender_exclusive` (input): text in non inclusive language
|
67 |
+
- `gender_inclusive` (target): text in inclusive language
|
68 |
+
- `difficulty`: translation difficulty category. Descriptions and distribution below.
|
69 |
+
- `origin`: data source. Descriptions and distribution below.
|
70 |
+
|
71 |
+
### Difficulty tags descriptions
|
72 |
+
We used different labels, most of them gender related, and can be describe like this:
|
73 |
+
| Tag | Description | Example |
|
74 |
+
|-----------------------|---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
75 |
+
| no_cambia | No changes are needed | "Los alumnos Carlos y Manuel son muy problemáticos" cannot be translated as "El alumnado Carlos y Manuel son muy problemáticos” |
|
76 |
+
| plural_complejo | Plural words for which there is not a neutral term. There are different formulas that will vary according to the context. | "Los agricultores" -> "La comunidad agrícola", "Los y las agricultoras". “Las limpiadoras” -> “El equipo de limpieza”. More: "El grupo de...", "El sector de...", "El personal de..." |
|
77 |
+
| plural_neutro | Change the plural for a generic noun. | "Los alumnos" -> "El alumnado" |
|
78 |
+
| culturas | People and cultures | "Los andaluces" -> "El pueblo andaluz", "La comunidad andaluza" |
|
79 |
+
| feminizar_profesiones | Professions with androcentric feminine forms | “La médico” -> "La médica". “La técnico de sonido” -> "La técnica de sonido" |
|
80 |
+
| nombres_propios | Proper names | "Los alumnos Carlos y Manuel son muy problemáticos" cannot be translated as "El alumnado es muy problemático |
|
81 |
+
| persona_generica | Reference to a generic person | "Nota al lector" -> "Nota a quien lee", "Nota a la persona que lee" |
|
82 |
+
| dificultades_variadas | Mix of difficulties (to tag big chunks of diverse data) | |
|
83 |
+
| plurales | Mix of neutral and complex plurals | |
|
84 |
+
| falsa_concordancia | Androcentric agreement errors | "Estas siete parejas van a dar lo mejor de sí mismos" -> "Estas siete parejas van a dar lo mejor de sí mismas." |
|
85 |
+
| omision | The subject or some pronouns are omitted, or the phrase is restructured with verboids. | "los participantes mantendrán un debate" -> "habrá un debate", "Si los científicos trabajan adecuadamente" -> "Trabajando adecuadamente, "los estudiantes" -> "estudiantes |
|
86 |
+
| terminologia | Correction of terms with ableist, racist, or other types of discrimination bias. | |
|
87 |
+
| parafrasis | Avoid words with generic connotations by reformulating the phrase | |
|
88 |
+
| otros | Difficulties that don’t fit in the other labels | |
|
89 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/65d9bf5b41325e422e9fa704/BuwIZc3bOS0Seruz-zPce.png" alt="difficulties_distribution.JPG" width="1500"/>
|
90 |
+
|
91 |
+
### Origin tags descriptions
|
92 |
+
Data quality can depend on their origin, so data are tagged with origin labels according to this table:
|
93 |
+
| Tag | Description | Link to origin |
|
94 |
+
|---------------------------|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
95 |
+
| neutral_es | Curated and refined version of neutral-es dataset | https://huggingface.co/datasets/hackathon-pln-es/neutral-es |
|
96 |
+
| GPT-3.5_fewshot | Chat GPT-3.5 generated with few shot technique | |
|
97 |
+
| GPT-3.5_CaDi <sup>*</sup> | Data created based on the dataset used for developing CaDi project<sup>*</sup> | https://lenguaje-incluyente.ibero.mx/ |
|
98 |
+
| GPT-3.5_fs_multiplication | Data multiplicated from GPT-3.5_fewshot using GPT-3.5 | |
|
99 |
+
| guia_CCGG | Examples from Spanish General Courts language inclusive Guide | https://www.congreso.es/docu/igualdad/Recomendaciones_uso_no_sexista_lenguajeCC.GG..pdf |
|
100 |
+
| guia_TAI | Examples from Trenes Argentinos' Guide to the use of inclusive language | https://www.argentina.gob.ar/sites/default/files/guia_para_uso_de_lenguaje_inclusivo_v1.pdf |
|
101 |
+
| guia_CONICET | Examples from Guide to inclusive, non-sexist language (CONICET) | https://cenpat.conicet.gov.ar/wp-content/uploads/sites/91/2020/08/Guia-lenguaje-inclusivo-no-sexista-CENPAT_final-1.pdf |
|
102 |
+
| guia_INAES | Examples of Guidelines for Inclusive Language Recommendations (INAES) | https://www.argentina.gob.ar/sites/default/files/2020/10/lenguaje_inclusivo_inaes_2021.pdf |
|
103 |
+
| guia_CHRYSALLIS | Examples from Practical Guide to Inclusive Language (Chrysallis) | https://www.lgbtqiahealtheducation.org/wp-content/uploads/2020/04/Guia-practica-de-lenguaje-inclusivo-Chrysallis.pdf |
|
104 |
+
| guia_ONU | Examples from Guidance for the use of gender-inclusive language (UN) | https://www.unwomen.org/sites/default/files/Headquarters/Attachments/Sections/Library/Gender-inclusive%20language/Guidelines-on-gender-inclusive-language-es.pdf |
|
105 |
+
| guia_MX | Examples from Manual for the use of inclusive and gender-sensitive language (MX) | https://www.gob.mx/cms/uploads/attachment/file/183695/Manual_Lenguaje_Incluyente_con_perspectiva_de_g_nero-octubre-2016.pdf |
|
106 |
+
| guia_CL | Examples from Gender Inclusive Language Guide of the Government of Chile | https://www.cultura.gob.cl/wp-content/uploads/2023/01/guia-de-lenguaje-inclusivo-de-genero.pdf |
|
107 |
+
| guia_IEM | Examples from Uso del Lenguaje Inclusivo de Género | https://secretariagenero.poder-judicial.go.cr/images/Documentos/LenguajeInclusivo/Documentos/Uso-de-lenguaje-inclusivo-de-Genero-IEM-UNA.pdf |
|
108 |
+
| human_combinatory | Combinatorics of text fragments generated with GPT3.5 | |
|
109 |
+
| GPT-4_human | Chat GPT-4 generated and human revised | |
|
110 |
+
| human | Human created data based on information from inclusive language guidelines | |
|
111 |
+
|
112 |
+
<sup>*</sup>©Universidad Iberoamericana, A.C. , Ciudad de México, México
|
113 |
+
|
114 |
+
<sup>*</sup>©Capitolina Díaz Martínez, Elvia María Guadalupe González del Pliego Dorantes, Marco Antonio López Hernández, Alberto López Medina, Héctor Celallos Avalos, Laura Mejía Hernández
|
115 |
+
|
116 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/65d9bf5b41325e422e9fa704/Y5BCoOYej06rpTK6kfm2k.png" alt="origins_distribution.JPG" width="600"/>
|
117 |
+
|
118 |
+
## Dataset Creation
|
119 |
+
### Curation Rationale
|
120 |
+
The selection of words carries inherent biases and reflects subjective perspectives. In some cases, language is wielded to enforce ideologies, marginalize certain groups, or promote specific political agendas. In response to these linguistic challenges, this dataset offers neutral alternatives in accordance with official guidelines on inclusive language from various Spanish-speaking countries. Its purpose is to provide grammatically correct and inclusive solutions to situations where our language choices might otherwise be exclusive.
|
121 |
+
|
122 |
+
This dataset has been created to train the model ["Traductor Inclusivo"](https://huggingface.co/somosnlp/es-inclusivo-translator) which aims to tackle this problem.
|
123 |
+
|
124 |
+
## Source Data
|
125 |
+
### Data Collection and Processing
|
126 |
+
The data used for training the model has been sourced from various origins. The first and more important source was a curated and refined version of [es_neutral](https://huggingface.co/datasets/hackathon-pln-es/neutral-es) (link to the dataset curation notebook [here](https://github.com/Andresmfs/Neutral_es-Text-data-cleaning) )
|
127 |
+
|
128 |
+
In addition, we manually generated data based on Official Guidelines from different Spanish speaking countries. Finally, we augmented this data by experimenting with various prompts and Few-Shot learning techniques. We needed to be as explicit as possible, otherwise we wouldn’t get good results. You can see some examples below.
|
129 |
+
|
130 |
+
Example 1:
|
131 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/65d9bf5b41325e422e9fa704/48ipmlxyEHgkNLxLvWnUp.jpeg" alt="foto1.JPG" width="600"/>
|
132 |
+
|
133 |
+
Example 2:
|
134 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/65d9bf5b41325e422e9fa704/rwkDR3FrFyLLOMmofCMFI.jpeg" alt="foto2.JPG" width="600"/>
|
135 |
+
|
136 |
+
Example 3:
|
137 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/65d9bf5b41325e422e9fa704/rHCV4UwitTbmQD0r2WS6V.jpeg" alt="foto3.JPG" width="700"/>
|
138 |
+
|
139 |
+
We tried to be as inclusive as possible, paying close attention to the classification of difficulties that one could encounter in texts like these.
|
140 |
+
|
141 |
+
Moreover, we took care to incorporate numerous counterexamples, recognizing that there are instances where neutrality is not required in a sentence. For instance, “Las arquitectas María Nuñez y Rosa Loria presentaron el proyecto” should not be rewritten as “El equipo de arquitectura María Nuñez y Rosa Loria presentó el proyecto”.
|
142 |
+
|
143 |
+
It’s important to highlight that the Traductor Inclusivo not only promotes gender inclusivity but also addresses other forms of discrimination such as ableism, racism, xenophobia, and more.
|
144 |
+
|
145 |
+
You can access scripts used during data creation [here](https://github.com/Andresmfs/es-inclusive-language-dataset-creation)
|
146 |
+
|
147 |
+
### Who are the source data producers?
|
148 |
+
Data have been produced by different producers:
|
149 |
+
- Official Spanish Inclusive Language Guidelines:
|
150 |
+
- - [Recomendaciones para un uso no sexista del lenguaje en la Administracio n parlamentaria (España)](https://www.congreso.es/docu/igualdad/Recomendaciones_uso_no_sexista_lenguajeCC.GG..pdf)
|
151 |
+
- [Guía para uso de lenguaje inclusivo (Argentina)](https://www.argentina.gob.ar/sites/default/files/guia_para_uso_de_lenguaje_inclusivo_v1.pdf)
|
152 |
+
- [Guía de lenguaje inclusivo no sexista CCT CONICET-CENPAT (Argentina)](https://cenpat.conicet.gov.ar/wp-content/uploads/sites/91/2020/08/Guia-lenguaje-inclusivo-no-sexista-CENPAT_final-1.pdf)
|
153 |
+
- [Guía de recomendaciones para lenguaje inclusivo (Argentina)](https://www.argentina.gob.ar/sites/default/files/2020/10/lenguaje_inclusivo_inaes_2021.pdf)
|
154 |
+
- [Guía práctica de lenguaje inclusivo (España)](https://www.lgbtqiahealtheducation.org/wp-content/uploads/2020/04/Guia-practica-de-lenguaje-inclusivo-Chrysallis.pdf)
|
155 |
+
- [Guía para el uso de un lenguaje inclusivo al género (ONU)](https://www.unwomen.org/sites/default/files/Headquarters/Attachments/Sections/Library/Gender-inclusive%20language/Guidelines-on-gender-inclusive-language-es.pdf)
|
156 |
+
- [Manual para el uso de un lenguaje incluyente y con perspectiva de género (México)](https://www.gob.mx/cms/uploads/attachment/file/183695/Manual_Lenguaje_Incluyente_con_perspectiva_de_g_nero-octubre-2016.pdf)
|
157 |
+
- [Guía de lenguaje inclusivo de Género (Chile)](https://www.cultura.gob.cl/wp-content/uploads/2023/01/guia-de-lenguaje-inclusivo-de-genero.pdf)
|
158 |
+
- [Uso del Lenguaje Inclusivo de Género, IEM (Costa Rica)](https://secretariagenero.poder-judicial.go.cr/images/Documentos/LenguajeInclusivo/Documentos/Uso-de-lenguaje-inclusivo-de-Genero-IEM-UNA.pdf)
|
159 |
+
- [Uso no sexista de la lengua, UOC (España)](https://www.uoc.edu/portal/es/servei-linguistic/redaccio/tractament-generes/index.html)
|
160 |
+
- [neutral-es dataset](https://huggingface.co/datasets/hackathon-pln-es/neutral-es)
|
161 |
+
- ChatGPT-3.5 based examples and structures from official guidelines and dataset used for developing [CaDi project](https://lenguaje-incluyente.ibero.mx/)
|
162 |
+
- ChatGPT-4
|
163 |
+
|
164 |
+
## Annotations
|
165 |
+
### Annotation process
|
166 |
+
Most data were created using ChatGPT-3.5 based on examples and structures form Official Inclusive Language Guidelines and then supervised and corrected by the annotators always following the indications from the Official Guidelines.
|
167 |
+
You can find more information about this process in the Data Collection and Processing section.
|
168 |
+
Other data were created using pairs of words taken from CaDi project.
|
169 |
+
Data taken from neutral-es dataset were not modified beyond correcting spelling or grammar mistakes.
|
170 |
+
|
171 |
+
Regarding difficulty labels, we stablished different groups of data using the information from Official Spanish Inclusive Language Guidelines. We created a list of difficulties that could cover all kind of examples.
|
172 |
+
The difficulties list can be found above together with their descriptions.
|
173 |
+
Data from Official Guidelines were manually matched to the different difficulties according to the descriptions provided in the list and then we used those examples as a base to create more data using ChatGPT difficulty by difficulty, so new data would belong to a specific difficulty and therefore tagged with that difficulty.
|
174 |
+
|
175 |
+
### Who are the annotators?
|
176 |
+
- [Gaia Quintana Fleitas](https://huggingface.co/gaiaquintana)
|
177 |
+
- [Miguel López Pérez](https://huggingface.co/Wizmik12)
|
178 |
+
- [Andrés Martínez Fernández-Salguero](https://huggingface.co/Andresmfs)
|
179 |
+
|
180 |
+
### Personal and Sensitive Information
|
181 |
+
This dataset does not contain any personal or sensitive information.
|
182 |
+
|
183 |
+
## Bias, Risks, and Limitations
|
184 |
+
- Data are based on the Spanish Inclusive Language Guidelines mentioned in the source section and they may inherit any bias comming from these guidelines and institutions behind them. These are official and updated guidelines that should not contain strong biases. Data from neutral-es are based as well on Official Spanish Inclusive Language Guidelines
|
185 |
+
- Data based on CaDi may inherit biases from the institution behind it. It has been created by a group of specialists in the field from Universidad Iberoamericana
|
186 |
+
- Dataset contains a significantly large amount of data related to workspace compared to other areas.
|
187 |
+
- This dataset covers only difficulties that appear on the difficulties list
|
188 |
+
- Dataset is composed mostly by sentences where the terms to be modified are at the beginning of the sentence.
|
189 |
+
- Dataset does not contain long-complex texts.
|
190 |
+
|
191 |
+
### Recommendations
|
192 |
+
Users should be made aware of the risks, biases and limitations of the dataset.
|
193 |
+
|
194 |
+
## License
|
195 |
+
Creative Commons (cc-by-nc-sa-4.0)
|
196 |
+
This kind of licensed is inherited from CaDi project dataset.
|
197 |
+
|
198 |
+
## Citation
|
199 |
+
**BibTeX:**
|
200 |
+
|
201 |
+
```
|
202 |
+
@software{GAMIJ2024es-inclusive-language,
|
203 |
+
author = {Gaia Quintana Fleitas, Andrés Martínez Fernández-Salguero, Miguel López Pérez, Imanuel Rozenberg, Josué Sauca},
|
204 |
+
title = {Traductor Inclusivo},
|
205 |
+
month = April,
|
206 |
+
year = 2024,
|
207 |
+
url = {https://huggingface.co/datasets/somosnlp/es-inclusive-language}
|
208 |
+
}
|
209 |
+
```
|
210 |
+
|
211 |
+
## More Information
|
212 |
+
This project was developed during the [Hackathon #Somos600M](https://somosnlp.org/hackathon) organized by SomosNLP. The dataset was created using distilabel by Argilla and endpoints sponsored by HuggingFace.
|
213 |
+
|
214 |
+
**Team**:
|
215 |
+
- [**Gaia Quintana Fleitas**](https://huggingface.co/gaiaquintana)
|
216 |
+
- [**Andrés Martínez Fernández-Salguero**](https://huggingface.co/Andresmfs)
|
217 |
+
- **Imanuel Rozenberg**
|
218 |
+
- [**Miguel López Pérez**](https://huggingface.co/Wizmik12)
|
219 |
+
- **Josué Sauca**
|
220 |
+
|
221 |
+
## Contact
|
222 |
+
- [**Gaia Quintana Fleitas**](https://www.linkedin.com/in/gaiaquintana/) (gaiaquintana11@gmail.com)
|
223 |
+
- [**Andrés Martínez Fernández-Salguero**](www.linkedin.com/in/andrés-martínez-fernández-salguero-725674214) (andresmfs@gmail.com)
|
224 |
+
- [**Miguel López Pérez**](https://www.linkedin.com/in/miguel-lopez-perezz/)
|