Datasets:
File size: 8,481 Bytes
a81be7e ac5b8e3 a81be7e 4d866f0 a81be7e 4d866f0 a81be7e ac5b8e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | ---
license: cc-by-4.0
language:
- fr
tags:
- inception
- uima
- annotation
task_categories:
- token-classification
configs:
- config_name: document_metadata
data_files:
- split: train
path: data/document_metadata/document_metadata_train.parquet
- split: dev
path: data/document_metadata/document_metadata_dev.parquet
- config_name: spans
data_files:
- split: train
path: data/spans/spans_train.parquet
- split: dev
path: data/spans/spans_dev.parquet
---
# Dataset Card for PARHAF-pseudo-annotated
<div align="center">
<p>
<a href="https://huggingface.co/spaces/HealthDataHub/PARTAGES" style="display:inline;"><img src="img/PARTAGES BASELINE_RVB.png" alt="Logo" style="height:20px;vertical-align:middle; margin-right:8px; display:inline; margin-bottom:0.2em; margin-top:0.2em;" title="PARTAGES project"; /></a>
<a href="https://www.etalab.gouv.fr/wp-content/uploads/2018/11/open-licence.pdf" style="display:inline;" title="Etalab 2.0 license"><img src="img/Logo-licence-ouverte2.svg" style="height:20px; display:inline; margin-bottom:0.2em; margin-top:0.2em;"/></a>
<a href="https://creativecommons.org/licenses/by/4.0/deed.en" style="display:inline;"><img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/png/by.png" style="height:20px; display:inline; margin-bottom:0.2em; margin-top:0.2em;" title="CC BY 4.0 license"/></a>
</p>
</div>
## Dataset Description
- **Points of Contact:** WAJSBURT Perceval, KHALIL Youness
### Dataset Summary
PARHAF-pseudo-annotated is a subpart of the PARHAF corpus, an open French corpus of human-authored clinical reports of fictional patients.
It was created to support the development and evaluation of clinical NLP systems for the pseudonymization of identifying entities in clinical reports..
This dataset contains **training data only**. The test set will remain under embargo to enable future evaluations under controlled conditions, limiting the risk of LLM contamination through prior data exposure. **Please contact us for access to the test data.**
This training dataset is divided into a train split (80%) and a dev split (20%) to facilitate experimental design and reproducibility across teams. Teams are free to use the full training set or define a different split configuration.
Each patient record was:
- written by a senior medical resident
- reviewed by another senior medical resident, from the same specialty
- annotated by a specialist of the use case
- curated by another specialist of the use case
#### Data statistics
### DATASET SUMMARY
| Indicator | Value |
| --- | --- |
| Complete Dataset | |
| Number of JSON files | 509 |
| Total annotations | 6976 |
| Average document length | 4021 characters |
| 80% Threshold (annotations) | 5580 |
### Complete dataset distribution by type
| Type | Annotations | % of total |
| --- | --- | --- |
| EntiteAnonymisation | 6976 | 100.00% |
### Complete dataset distribution by populated field
| Type.Field | Occurrences | % of total annot. |
| --- | --- | --- |
| EntiteAnonymisation.Category | 6976 | 100.00% |
| EntiteAnonymisation.RoleLOC | 87 | 1.25% |
| EntiteAnonymisation.RoleNUM | 8 | 0.11% |
| EntiteAnonymisation.RolePER | 2466 | 35.35% |
### Train / Dev Split Results
| Indicator | TRAIN | DEV |
| --- | --- | --- |
| Number of files | 408 | 101 |
| Number of annotations | 5580 | 1396 |
| Percentage of dataset | 79.99% | 20.01% |
| Avg. document length (chars) | 3957 | 4280 |
### Train / Dev distribution by type
| Type | TRAIN | DEV | % train of type |
| --- | --- | --- | --- |
| EntiteAnonymisation | 5580 | 1396 | 79.99% |
### Train / Dev distribution by populated field
| Type.Field | TRAIN | DEV | % train of field |
| --- | --- | --- | --- |
| EntiteAnonymisation.Category | 5580 | 1396 | 79.99% |
| EntiteAnonymisation.RoleLOC | 66 | 21 | 75.86% |
| EntiteAnonymisation.RoleNUM | 5 | 3 | 62.50% |
| EntiteAnonymisation.RolePER | 1971 | 495 | 79.93% |
### Train / Dev distribution by value
| Type.Field.Value | TRAIN | DEV | % train |
| --- | --- | --- | --- |
| EntiteAnonymisation.Category.IDENTIFYING_DATE | 2312 | 568 | 80.28% |
| EntiteAnonymisation.Category.LAST_NAME | 1111 | 287 | 79.47% |
| EntiteAnonymisation.RolePER.Patient | 978 | 257 | 79.19% |
| EntiteAnonymisation.RolePER.Carer | 973 | 232 | 80.75% |
| EntiteAnonymisation.Category.FIRST_NAME | 860 | 208 | 80.52% |
| EntiteAnonymisation.Category.FAMILY_STATUS | 767 | 203 | 79.07% |
| EntiteAnonymisation.Category.PATIENT_SOCIAL_IDENTITY | 424 | 99 | 81.07% |
| EntiteAnonymisation.Category.CITY | 43 | 11 | 79.63% |
| EntiteAnonymisation.RoleLOC.Patient | 33 | 13 | 71.74% |
| EntiteAnonymisation.Category.COUNTRY | 19 | 9 | 67.86% |
| EntiteAnonymisation.RolePER.Other | 20 | 6 | 76.92% |
| EntiteAnonymisation.RoleLOC.Hospital | 18 | 4 | 81.82% |
| EntiteAnonymisation.Category.UNIDENTIFYING_DATE | 19 | 0 | 100.00% |
| EntiteAnonymisation.RoleLOC.Other | 15 | 4 | 78.95% |
| EntiteAnonymisation.Category.PATIENT_BIRTHDATE | 12 | 5 | 70.59% |
| EntiteAnonymisation.Category.PHONE_NUMBER | 5 | 3 | 62.50% |
| EntiteAnonymisation.Category.PATIENT_NATIONALITY | 4 | 2 | 66.67% |
| EntiteAnonymisation.RoleNUM.Carer | 4 | 1 | 80.00% |
| EntiteAnonymisation.Category.ADDRESS | 3 | 0 | 100.00% |
| EntiteAnonymisation.RoleNUM.Hospital | 1 | 1 | 50.00% |
| EntiteAnonymisation.Category.URL | 1 | 1 | 50.00% |
| EntiteAnonymisation.RoleNUM.Other | 0 | 1 | 0.00% |
#### Data Origin
The clinical reports are extracted from the PARHAF corpus. Please refer to PARHAF documentation for more information about this corpus.
### Languages
- fr_FR
## Dataset Structure
We distribute both a Hugging Face dataset and a standalone version of the corpus. The standalone dataset consists of a JSON file per patient report, in [UIMA CAS JSON format](https://inception-project.github.io/releases/39.7/docs/user-guide.html#sect_formats_uimajson). This format constitutes the canonical version of the corpus. The Hugging Face dataset (Parquet/Arrow) is a derived representation generated automatically from the JSON files.
Both formats therefore contain identical information and differ only in storage layout.
One dataset instance corresponds to **one report**.
### Hugging Face dataset
This snippet shows how to extract and iterate over medical report information per patient using the datasets library.
```python
import pandas as pd
from datasets import load_dataset
dfs = {cfg: load_dataset("HealthDataHub/PARHAF-pseudo-annotated", cfg, split="train").to_pandas()
for cfg in ["document_metadata", "spans"]}
for patient_raw in dfs["document_metadata"].itertuples():
report_id = patient_raw.report
text = patient_raw.full_text
report_spans = dfs["spans"][dfs["spans"]["report"] == report_id]
...
```
### Data Fields
| Path | Type | Description | Possible values |
| ---- | ---- | ----------- | --------------- |
| **document_metadata** | | | |
| `report` | string | Identifiant unique du rapport | |
| `full_text` | string | Texte intégral du rapport | |
| **spans** | | | |
| `report` | string | Identifiant du rapport | |
| `span_id` | integer | Identifiant de l'annotation | |
| `span_type` | string | Type de l'entité annotée | `EntiteAnonymisation` |
| `begin` | integer | Offset de début | |
| `end` | integer | Offset de fin | |
| `span_text` | string | Texte de l'entité | |
| `attribute_Categorie` | string | Categorie | `ADDRESS`, `CITY`, `COUNTRY`, `FAMILY_STATUS`, `FIRST_NAME`, `IDENTIFYING_DATE`, `LAST_NAME`, `PATIENT_BIRTHDATE`, `PATIENT_NATIONALITY`, `PATIENT_SOCIAL_IDENTITY` |
| `attribute_RolePER` | string | RolePER | `Carer`, `Other`, `Patient` |
| `attribute_RoleLOC` | string | RoleLOC | `Hospital`, `Other`, `Patient` |
| `attribute_RoleNUM` | string | RoleNUM | `Carer`, `Hospital` |
### Data Splits
Only the training set is released here. The remaining portion of the corpus will be temporarily embargoed to enable future evaluations under controlled conditions, thereby limiting the risk of large language model contamination through prior exposure to the data. You can evaluate your system on the test set through the CodaBench platform.
### Annotation Guidelines
You can find the detailed annotation protocol here: [annotation_guidelines.pdf](guidelines/annotation_guidelines.pdf)
### Licensing Information
This dataset is released under licenses:
- CC BY 4.0
- Etalab 2.0
### Citation Information
[More Information Needed] |