Datasets:

m-montoya commited on
Commit
5c85338
·
verified ·
1 Parent(s): f4c6dec

Update Hugging Face card dataset

Browse files
Files changed (1) hide show
  1. README.md +263 -3
README.md CHANGED
@@ -1,3 +1,263 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - text-generation
5
+ - fill-mask
6
+ - question-answering
7
+ - text-classification
8
+ language:
9
+ - es
10
+ tags:
11
+ - biomedical
12
+ - spanish
13
+ - medical
14
+ - corpus
15
+ - nlp
16
+ - healthcare
17
+ size_categories:
18
+ - 1M<n<10M
19
+ ---
20
+
21
+ # Dataset Card for ALIA biomedical Corpus
22
+
23
+ The **ALIA biomedical Corpus** constitutes a strategic data infrastructure designed to support research in life sciences, healthcare, and clinical computational linguistics. By ensuring systematic access to multiple official medical repositories in a single consolidated dataset, it provides a robust foundation for Spanish-language BioNLP. With over 10 million instances and more than 5 billion tokens, it represents the most comprehensive corpus of biomedical and clinical-related texts in Spanish, combining source heterogeneity with advanced technical curation via datatrove.
24
+
25
+ ## Table of Contents
26
+ - [Dataset Card for ALIA biomedical Corpus](#dataset-card-for-alia-biomedical-corpus)
27
+ - [Table of Contents](#table-of-contents)
28
+ - [Dataset Details](#dataset-details)
29
+ - [Dataset Description](#dataset-description)
30
+ - [Dataset Sources](#dataset-sources)
31
+ - [Uses](#uses)
32
+ - [Dataset Structure](#dataset-structure)
33
+ - [Data Instances](#data-instances)
34
+ - [Data Fields](#data-fields)
35
+ - [Data Splits](#data-splits)
36
+ - [Example Usage](#example-usage)
37
+ - [Dataset Creation](#dataset-creation)
38
+ - [Curation Rationale](#curation-rationale)
39
+ - [Source Data](#source-data)
40
+ - [Clinical Guidelines and Protocols](#clinical-guidelines-and-protocols)
41
+ - [Pharmaceutical and Toxicological Data](#pharmaceutical-and-toxicological-data)
42
+ - [Scientific Literature and Academic Resources](#scientific-literature-and-academic-resources)
43
+ - [Clinical Records and Specialized Corpus](#clinical-records-and-specialized-corpus)
44
+ - [Reference and NLP Resources](#reference-and-nlp-resources)
45
+ - [Data Collection and Processing](#data-collection-and-processing)
46
+ - [Preprocessing system](#preprocessing-system)
47
+ - [Annotations](#annotations)
48
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
49
+ - [Citation](#citation)
50
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
51
+ - [Social Impact of Dataset](#social-impact-of-dataset)
52
+ - [Discussion of Biases](#discussion-of-biases)
53
+ - [Other Known Limitations](#other-known-limitations)
54
+
55
+ ## Dataset Details
56
+
57
+ ### Dataset Description
58
+
59
+ The ALIA Biomedical Corpus is an open-access strategic data infrastructure that compiles and organizes an extensive collection of official documents and scientific texts from the Spanish biomedical and clinical domain. Its purpose is to provide a homogeneous, structured, and accessible documentary base for researchers, healthcare professionals, and computational linguists interested in the analysis and exploitation of medical, pharmacological, and clinical texts in Spanish.
60
+
61
+ This corpus has been designed with an integrative approach that encompasses clinical guidelines, medical registries, scientific publications, and official health bulletins. It covers key areas such as pharmacology, epidemiology, public health, and specialized medical research. This diversity allows for comprehensive coverage of the documentary ecosystem that regulates and records medical and scientific activity in the Spanish-speaking world.
62
+
63
+ The scope of the corpus, with approximately **10 million instances** and over **5.5 billion tokens**, makes it an unprecedented source for the development of Large Language Models (LLMs) specialized in medicine, Natural Language Processing (NLP) tools applied to clinical language, and research in medical informatics. Its processed nature facilitates advanced utilization in text mining, semantic modeling, information retrieval, and the construction of artificial intelligence systems specialized in healthcare and life sciences.
64
+
65
+
66
+ - **Curated by:** SINAI Research Group (Intelligent Systems for Information Access) - Universidad de Jaén, through the Center for Advanced Studies in Information and Communication Technologies (CEATIC).
67
+ - **Funded by:** This work is funded by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project Desarrollo de Modelos ALIA.
68
+ - **Language(s) (NLP):** es (Spanish)
69
+ - **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
70
+
71
+ ### Dataset Sources
72
+
73
+ - **Paper:** [N/A]
74
+
75
+ ### Uses
76
+
77
+ The primary purpose of this corpus is to serve as a foundation for training and evaluating language models specialized in the Spanish biomedical domain, with applications in:
78
+
79
+ - Training large language models (LLMs) specialized in Spanish biomedical text
80
+ - Biomedical information retrieval systems
81
+ - Question-answering systems about Spanish biomedical
82
+ - Research in natural language processing applied to the biomedical domain
83
+
84
+ ## Dataset Structure
85
+
86
+ ### Data Instances
87
+
88
+ Each instance in the corpus has the following structure:
89
+
90
+ ```
91
+ {
92
+ 'id': '7072382',
93
+ 'text': 'El número de lesiones del ligamento cruzado aumentó considerablemente entre 1970 y 1979 en las estadísticas de la Schweizerische Unfallversicherungsanstalt . Se llama la atención para nuevos y más diferenciados métodos de diagnóstico y terapia. La tendencia de la tasa de nulidad debido a la mejora de los diagnósticos y de la terapia solo puede observarse tendencia. Las medidas preventivas deben ser demandadas sobre todo en el deporte ya que encontramos el origen de más y más lesiones del ligamento cruzado',
94
+ 'source_id': 'Translated_Pubmed'
95
+ }
96
+ ```
97
+
98
+ ### Data Fields
99
+
100
+ - **id** (string): Unique document identifier
101
+ - **text** (string): Clean and processed textual content of the document
102
+ - **source_id** (string): Source of origin of the document
103
+
104
+ ### Data Splits
105
+
106
+ The complete dataset contains the following main sources with their statistics:
107
+ | Source Dataset | Num Tokens | Num Instances | Tokens Percentage | Link |
108
+ | :--- | :---: | :---: | :---: | :--- |
109
+ | SECOMCYC | 428,621 | 60 | 0.0077% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/SECOMCYC) |
110
+ | SER | 441,098 | 12 | 0.0079% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/SER) |
111
+ | SANGVA | 504,259 | 7 | 0.0090% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/SANGVA) |
112
+ | Ministerio_Sanidad_Medic_Trans | 519,871 | 36 | 0.0093% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Ministerio_Sanidad_Medic_Trans) |
113
+ | CARMEN_I | 742,437 | 1,310 | 0.0133% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/CARMEN_I) |
114
+ | Tox_Habits | 1,061,706 | 1,040 | 0.0191% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Tox_Habits) |
115
+ | SPA_Junta_De_Andalucia | 1,206,355 | 27 | 0.0217% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/SPA_Junta_De_Andalucia) |
116
+ | AEPCP | 1,507,891 | 40 | 0.0271% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/AEPCP) |
117
+ | RECCMI | 1,827,907 | 30 | 0.0328% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/RECCMI) |
118
+ | AEPED | 1,946,814 | 788 | 0.0350% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/AEPED) |
119
+ | Guia_Salud | 2,015,004 | 21 | 0.0362% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Guia_Salud) |
120
+ | BARR_2 | 2,108,752 | 2,858 | 0.0378% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/BARR_2) |
121
+ | Ministerio_Sanidad_Estrategias | 6,038,859 | 172 | 0.1084% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Ministerio_Sanidad_Estrategias) |
122
+ | Prod_Cient_AETSA | 11,169,765 | 303 | 0.2005% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Prod_Cient_AETSA) |
123
+ | MedlinePlus | 11,259,425 | 5,531 | 0.2021% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/MedlinePlus) |
124
+ | Multi_Clin_Sum | 38,208,297 | 53,691 | 0.6858% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Multi_Clin_Sum) |
125
+ | MESINESP_2 | 60,639,295 | 135,286 | 1.0884% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/MESINESP_2) |
126
+ | Wikipedia_Biomedical | 64,881,930 | 39,601 | 1.1646% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Wikipedia_Biomedical) |
127
+ | CIMA_AEMPS | 123,472,173 | 16,392 | 2.2162% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/CIMA_AEMPS) |
128
+ | Miscelanea_Roberta | 1,554,077,398 | 11,776 | 27.8939% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Miscelanea_Roberta) |
129
+ | Translated_Pubmed | 3,687,325,552 | 10,033,666 | 66.1833% | [GitHub](https://github.com/sinai-uja/ALIA-UJA/tree/dev/data/llms/datasets/biomedical/Translated_Pubmed) |
130
+ | **TOTAL** | **5,571,383,409** | **10,302,647** | **100.00%** | - |
131
+
132
+
133
+ ### Example Usage
134
+
135
+ To load the dataset:
136
+
137
+ ```
138
+ from datasets import load_dataset
139
+
140
+ # Load the complete dataset
141
+ data = load_dataset("SINAI/ALIA-biomedical", trust_remote_code=True)
142
+
143
+ # Load with streaming (recommended for large corpora)
144
+ data = load_dataset("SINAI/ALIA-biomedical", trust_remote_code=True, streaming=True)
145
+ ```
146
+
147
+ Example of data access:
148
+
149
+ ```
150
+ # Access an example
151
+ example = data['train']
152
+ print(f"ID: {example['id']}")
153
+ print(f"Source: {example['source_id']}")
154
+ print(f"Text: {example['text'][:200]}...")
155
+ ```
156
+
157
+ ## Dataset Creation
158
+
159
+ ### Curation Rationale
160
+
161
+ This corpus was created to address the need for specialized linguistic resources in Spanish biomedical language, fundamental for the development of the ALIA foundational model within the Spanish Government's Artificial Intelligence Strategy 2024. Its design responds to the demand from researchers, legal professionals, and data scientists who require systematic access to Spanish official documentation for AI model training and specialized linguistic analysis.
162
+
163
+ ### Source Data
164
+
165
+ The corpus integrates documentation from multiple Spanish clinical and biomedical repositories:
166
+
167
+ #### Clinical Guidelines and Protocols
168
+ - **National Health System (GuíaSalud)**: Active Clinical Practice Guidelines based on scientific evidence.
169
+ - **Regional Health Services**: Includes guidelines and care protocols from the Andalusian Health Service (SAS) and the Valencian Community Health System (SANGVA).
170
+ - **Medical Societies**: Clinical protocols and guidelines from specialized societies such as Oncology (SEOM), Rheumatology (SER), and Oral and Maxillofacial Surgery (SECOMCYC).
171
+
172
+ #### Pharmaceutical and Toxicological Data
173
+ - **CIMA (AEMPS)**: Official information on authorized medicines, technical data sheets, and evaluation reports.
174
+ - **Pediamécum (AEPED)**: Specialized dataset on pediatric medications and active ingredients.
175
+ - **ToxHabits-NER**: Gold-standard annotated data for detecting toxic habits (tobacco, alcohol, and drugs) in clinical texts.
176
+
177
+ #### Scientific Literature and Academic Resources
178
+ - **MESINESP2**: Large-scale dataset for medical semantic indexing, including clinical trials, scientific articles (LILACS/IBECS), and medical patents.
179
+ - **Translated PubMed**: Spanish translations of PubMed titles and abstracts with MeSH and DeCS indexing.
180
+ - **Scientific Production (AETSA & AEPCP)**: Health technology assessment reports and scientific publications on clinical psychology.
181
+
182
+ #### Clinical Records and Specialized Corpus
183
+ - **CARMEN-I**: Anonymized electronic health records from Hospital Clínic de Barcelona.
184
+ - **RECCMI**: Real-world clinical cases in internal medicine (2018-2025).
185
+ - **MultiClinSum**: Multilingual corpus for the automatic summarization of clinical case reports.
186
+
187
+ #### Reference and NLP Resources
188
+ - **Biomedical Abbreviations (BARR2)**: Specialized resource for the recognition and resolution of clinical abbreviations.
189
+ - **Wikipedia Biomedical**: Comprehensive collection of biomedical terms and definitions from the Spanish Wikipedia.
190
+ - **Ministerio de Sanidad**: Strategic health plans, transfusion medicine reports, and national health policies.
191
+
192
+
193
+ All data come from official and publicly accessible sources.
194
+
195
+ ### Data Collection and Processing
196
+
197
+ #### Preprocessing system
198
+
199
+ The corpus is based on a previous version of nearly 20 billion tokens that was processed with an advanced cleaning methodology based on [datatrove](https://github.com/huggingface/datatrove). This system automates the cleaning and preparation of large volumes of text in Spanish, eliminating duplicate and low-quality content.
200
+
201
+ **Step 1: Configuration and paths loading**
202
+ - Loading YAML configuration files with parameters (language threshold, filters, etc.)
203
+ - Definition of work paths and processing environment preparation
204
+
205
+ **Step 2: Language filtering**
206
+ - Automatic language analysis of each document
207
+ - Selection of Spanish texts according to confidence threshold
208
+
209
+ **Step 3: MinHash deduplication**
210
+ - Advanced detection of repeated or highly similar content
211
+ - Use of scalable comparison algorithms for large volumes
212
+
213
+ **Step 4: Quality filters and final cleaning**
214
+ - Application of multiple specialized filters
215
+ - Correction of encoding errors
216
+ - Removal of sensitive or identifiable information
217
+
218
+ Token counting was performed using [tiktoken](https://github.com/openai/tiktoken).
219
+
220
+ The final result is a corpus of **5571383409 tokens** distributed across **10302647**, optimized for language model training.
221
+
222
+ ### Annotations
223
+
224
+ The dataset does not contain additional annotations beyond the structural metadata extracted during processing (dates, document types, source).
225
+
226
+ ### Personal and Sensitive Information
227
+
228
+ The corpus has been subjected to cleaning processes to remove sensitive or identifiable information according to data protection regulations. Documents come from public official sources, although some may contain references to names in official contexts (legislators, public officials in the exercise of their duties). Users are advised to apply additional controls depending on the specific use of the corpus.
229
+
230
+ ### Citation
231
+ [N/A]
232
+
233
+ ## Considerations for Using the Data
234
+
235
+ ### Social Impact of Dataset
236
+
237
+ This corpus represents a significant advance in democratizing access to biomedical information in Spanish, facilitating the development of AI tools that can improve access to justice and understanding of regulations by citizens and professionals. It contributes to the national strategic objective of developing foundational AI models in Spanish with ethical and transparency standards.
238
+
239
+ ### Discussion of Biases
240
+
241
+ The corpus reflects the biomedical language used in Spanish, which may present biases inherent to:
242
+
243
+ - Formal Scientific Language: The corpus primarily consists of formal, clinical, and academic language. It may not be representative of colloquial Spanish or informal patient-doctor interactions (e.g., social media health discussions or medical forums).
244
+
245
+ - Geographic Representation: There may be an overrepresentation of certain Spanish autonomous communities or regions, depending on the availability and digitization level of their specific health and clinical repositories.
246
+
247
+ - Technical Anglicisms: In segments like the EuroPat (medical patents) or Translated_Pubmed, some technical anglicisms or translation artifacts may be present, reflecting the globalized nature of medical terminology and patent documentation.
248
+
249
+ - Regional Regulatory Focus: The data reflects regulatory frameworks and institutional perspectives specific to the Spanish healthcare system, which might differ from those in other Spanish-speaking regions in Latin America.
250
+
251
+ ### Other Known Limitations
252
+
253
+ - The quality of original texts depends on official digitization and publication, and may contain OCR errors in historical documents
254
+ - Temporal coverage varies by source, being more complete in recent years
255
+ - The vocabulary is limited to the biomedical domain and may not be representative of other Spanish domains
256
+ - Some technical documents may include tables, formulas, or structured elements that are lost in the textual version
257
+ - Token and instance statistics by dataset correspond to data prior to final cleaning with datatrove
258
+
259
+ ---
260
+
261
+ **Contact:** [ALIA Project](https://www.alia.gob.es/) - [SINAI Research Group](https://sinai.ujaen.es) - [Universidad de Jaén](https://www.ujaen.es/)
262
+
263
+ **More information:** [SINAI Research Group](https://sinai.ujaen.es) | [ALIA-UJA Project](https://github.com/sinai-uja/ALIA-UJA)