|
--- |
|
license: apache-2.0 |
|
task_categories: |
|
- token-classification |
|
language: |
|
- it |
|
tags: |
|
- medical |
|
pretty_name: PharmaER.IT |
|
size_categories: |
|
- n<1K |
|
dataset_info: |
|
features: |
|
- name: document_id |
|
dtype: string |
|
- name: text |
|
dtype: string |
|
- name: tokens |
|
sequence: string |
|
- name: labels |
|
sequence: string |
|
splits: |
|
- name: train |
|
num_bytes: 3776228 |
|
num_examples: 37 |
|
- name: validation |
|
num_bytes: 1164636 |
|
num_examples: 10 |
|
- name: test |
|
num_bytes: 186229 |
|
num_examples: 10 |
|
download_size: 1374137 |
|
dataset_size: 5127093 |
|
--- |
|
# Dataset Card for Dataset Name |
|
|
|
<!-- Provide a quick summary of the dataset. --> |
|
The PharmaER.IT Dataset is an Entity Recognition dataset for Pharmaceutical domain in Italian. |
|
|
|
The latest is the vesion 0.2. |
|
|
|
## Dataset Details |
|
|
|
### Dataset Description |
|
|
|
<!-- Provide a longer summary of what this dataset is. --> |
|
PharmaER.IT is an Entity Recognition dataset in Pharmaceutical domain for Italian. |
|
It has been created using the leaflets of drugs recognized by the Italian Medicines Agency (AIFA). |
|
The data points considered are: |
|
- **farmaco**: words representing drugs; |
|
- **malattia**: words indicating diseases; |
|
- **sintomo**: words indicating a symptom; |
|
- **parte anatomica**: words representing anatomical parts of the human body; |
|
- **O**: used for all the remaining words that do not correspond to any of the previous entities. |
|
|
|
It is formed by two supervised collections: |
|
- **Gold** - It consists of 57 documents organized in Train (37), Validation (10) and Test (10) sets. |
|
The documents were annotated using a semi-automatic procedure with a final HUMAN VALIDATION check. |
|
|
|
- **Silver** - It will consists of a large set of documents automatically annotated |
|
using the best performing ER model trained and tested with the Gold dataset. |
|
|
|
Version 0.2 is the latest. |
|
|
|
## Dataset Info |
|
|
|
- **Curated by:** |
|
- Leonardo Rigutini, Stefano Ligabue, Simone Martin Marotta, Marta Spagnolli, Vincenzo Masucci - expert.ai |
|
- **Shared by:** |
|
- Leonardo Rigutini, Stefano Ligabue, Simone Martin Marotta, Marta Spagnolli, Vincenzo Masucci - expert.ai |
|
- **Funded by:** |
|
- MAESTRO - Mitigare le Allucinazioni dei Large Language Models: ESTRazione di informazioni Ottimizzate” a project funded by Provincia Autonoma di Trento with the Lp 6/99 Art. 5:ricerca e sviluppo, PAT/RFS067-05/06/2024-0428372, CUP:C79J23001170001 12; |
|
- ReSpiRA - REplicabilità, SPIegabilità e Ragionamento”, a project financed by FAIR, Affiliated to spoke no. 2, falling within the PNRR MUR programme, Mission 4, Component 2, Investment 1.3, D.D. No. 341 of 03/15/2022, Project PE0000013, CUP B43D22000900004; |
|
- **Language(s) (NLP):** |
|
- Italian |
|
- **License:** |
|
- Apache2.0 |
|
|
|
<!-- |
|
### Dataset Sources [optional] |
|
<!-- Provide the basic links for the dataset. --> |
|
<!-- |
|
- **Repository:** [More Information Needed] |
|
- **Paper [optional]:** [More Information Needed] |
|
- **Demo [optional]:** [More Information Needed] |
|
--> |
|
<!-- |
|
## Uses |
|
<!-- Address questions around how the dataset is intended to be used. --> |
|
<!-- |
|
### Direct Use |
|
<!-- This section describes suitable use cases for the dataset. --> |
|
<!-- |
|
[More Information Needed] |
|
--> |
|
<!-- |
|
### Out-of-Scope Use |
|
<!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. --> |
|
<!-- |
|
[More Information Needed] |
|
--> |
|
## Dataset Structure |
|
|
|
<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. --> |
|
Each set consists of a json array of objects with: |
|
- document_id: the original document id; |
|
- text: the raw text content extracted from the original PDF; |
|
- tokens: an array of strings representing the tokenized text; |
|
- labels: an array of strings representing the annotation assigned to each token. |
|
The data points considered are: |
|
- **farmaco**: words representing drugs; |
|
- **malattia**: words indicating diseases; |
|
- **sintomo**: words indicating a symptom; |
|
- **parte anatomica**: words representing anatomical parts of the human body; |
|
- **O**: used for all the remaining words that do not correspond to any of the previous entities. |
|
|
|
## Dataset Creation |
|
|
|
The Gold dataset was created following a semi-automatic procedure. |
|
After downloading about 8000 leaflets from the AIFA website, a part of them (67) were labeled using a committee made up of expert systems and LLMs. |
|
The generated annotations were reported on the original documents, highlighting the cases of agreement and disagreement between the committee's models. |
|
The set was divided into 5 "BATCH" that were provided to a team of 5 experts with the task of validating the annotations, |
|
by accepting or modifying the proposals inserted by the automatic procedure. |
|
Finally, the resulting dataset was splitted into three sets: train (37), validation (10) and test (10) sets. |
|
The following table reports the distribution of the entities in the gold dataset: |
|
|
|
| Data Point | Train | Validation | Test | **Total** | |
|
|:------------------|:-----:|:----------:|:----:|:---------:| |
|
| farmaco | 5796 | 1799 | 99 | 7694 | |
|
| malattia | 2962 | 939 | 82 | 3983 | |
|
| sintomo | 2409 | 745 | 14 | 3168 | |
|
| parte anatomica | 722 | 223 | 50 | 995 | |
|
| | | | | | |
|
| **Total** | 11889 | 3706 | 245 | 15840 | |
|
|
|
#### Dataset quality assessment |
|
|
|
In each BATCH, documents shared, in pairs, with other annotators were inserted. |
|
These documents were used to evaluate some agreement indices in order to provide a measure of the consistency |
|
of the annotations in the Gold dataset. |
|
The results are reported in the following table: |
|
|
|
| Data Point | JPA | CPA | Coverage | k-Cohen | |
|
|------------------|:-----:|:-----:|:--------:|:-------:| |
|
| farmaco | 0.85 | 0.91 | 0.91 | 0.90 | |
|
| malattia | 0.98 | 0.84 | 0.86 | 0.83 | |
|
| sintomo | 0.74 | 0.86 | 0.87 | 0.84 | |
|
| parte anatomica | 0.68 | 0.84 | 0.84 | 0.76 | |
|
| | | | | | |
|
| **Average** | 0.81 | 0.86 | 0.87 | 0.83 | |
|
|
|
<!-- |
|
| Data Point | JPA | CPA | Coverage | k-Cohen | |
|
|------------------|:-----:|:-----:|:--------:|:-------:| |
|
| Farmaco | 0.85 | 0.91 | 0.91 | 0.90 | |
|
| Malattia | 0.98 | 0.84 | 0.86 | 0.83 | |
|
| Sintomo | 0.74 | 0.86 | 0.87 | 0.84 | |
|
| Parte anatomica | 0.68 | 0.84 | 0.84 | 0.76 | |
|
| No Entity | 0.98 | 0.99 | 0.99 | 0.84 | |
|
|------------------|-------|-------|----------|---------| |
|
| **Average** | 0.85 | 0.89 | 0.89 | 0.84 | |
|
--> |
|
<!-- |
|
### Curation Rationale |
|
|
|
<!-- Motivation for the creation of this dataset. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
### Source Data |
|
|
|
<!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). --> |
|
<!-- |
|
|
|
#### Data Collection and Processing |
|
|
|
<!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
#### Who are the source data producers? |
|
|
|
<!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
### Annotations [optional] |
|
|
|
<!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. --> |
|
<!-- |
|
|
|
#### Annotation process |
|
|
|
<!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
#### Who are the annotators? |
|
|
|
<!-- This section describes the people or systems who created the annotations. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
#### Personal and Sensitive Information |
|
|
|
<!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
## Bias, Risks, and Limitations |
|
|
|
<!-- This section is meant to convey both technical and sociotechnical limitations. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
### Recommendations |
|
|
|
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. --> |
|
<!-- |
|
|
|
Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations. |
|
|
|
## Citation [optional] |
|
|
|
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. --> |
|
|
|
**BibTeX:** |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
**APA:** |
|
|
|
[More Information Needed] |
|
|
|
## Glossary [optional] |
|
|
|
<!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. --> |
|
<!-- |
|
|
|
[More Information Needed] |
|
|
|
## More Information [optional] |
|
|
|
[More Information Needed] |
|
--> |
|
## Leaderboard |
|
|
|
| #pos | Models | Precision | Recall | **F1** | Accuracy | |
|
|:----:|--------------------------------|:---------:|:--------:|:-----------:|:--------:| |
|
| 1° | bert-base-multilingual-cased | 0.86174 | 0.91235 | **0.88632** | 0.91235 | |
|
| 2° | bert-base-italian-uncased | 0.83954 | 0.91608 | 0.87614 | 0.91608 | |
|
| 3° | bert-base-multilingual-uncased | 0.83896 | 0.91235 | 0.87368 | 0.91235 | |
|
| 4° | bert-base-italian-cased | 0.83382 | 0.91314 | 0.87168 | 0.91314 | |
|
| 5° | SVM | 0.81 | 0.638 | 0.712 | | |
|
| 6° | Passive Aggressive | 0.756 | 0.644 | 0.694 | | |
|
| 7° | CRF | 0.76 | 0.60 | 0.664 | | |
|
|
|
|
|
## Dataset Card Authors [optional] |
|
|
|
Leonardo Rigutini, Stefano Ligabue, Simone Martin Marotta, Marta Spagnolli, Vincenzo Masucci - expert.ai |
|
|
|
## Dataset Card Contact |
|
|
|
Leonardo Rigutini |
|
|