CoolFace
Modelpublic

BSC-NLP4BIA/DT4H_XLM-R_mtl_es-it-ro_disease

sourceHugging Facecc-by-4.0updated 5mo agoView on Hugging Face
0likes
Model Card

DT4HXLM-Rmtles-it-rodisease

Model Description

This multilingual clinical Named Entity Recognition (NER) model is designed to identify disease mentions in biomedical and clinical text. It is based on `xlm-roberta-base` and fine-tuned on translated variants of the clinical NER datasets DisTEMIST and CardioCCC, which consist of clinical case reports with manually annotated mentions of diseases, following a multi-task learning (MTL) approach and using the BIO tagging scheme for sequence labeling.

The model consists of a shared multilingual encoder and a set of language-specific token classification heads, each one being responsible for a different task. In this configuration, each classification head is trained on language-specific data manually annotated with disease mentions.

  • —Architecture: Multi-task learning (MTL)
  • —Training setup: Multilingual, Monolabel (DISEASE)
  • —Tasks: disease_es_ner, disease_it_ner, disease_ro_ner
  • —Supported languages:
  • —Spanish (es)
  • —Italian (it)
  • —Romanian (ro)
  • —Base model: xlm-roberta-base
  • —Task: Token classification (NER)
  • —Label scheme: BIO

Training Data

The model is trained on multilingual clinical NER data from the DisTEMIST and CardioCCC datasets across the supported languages. In this MTL set up, each classification head is trained to perform a specific task, which is the identification of disease mentions in clinical and biomedical texts written in its assigned language. For that, each classification head is fine-tuned on language-specific data where disease names have been manually labeled. During training, the shared part of the model learns general medical and linguistic patterns across all languages while each classification head is fine-tuned on language-specific annotated data, so it becomes better at recognizing disease names in that particular language.

The training data is provided as part of the MultiClinNER subtask of the **MultiClinAI** shared task, an initiative as part of the DataTools4Heart (DT4H) project, which provides translated and annotation-projected clinical corpora.

Training and test splits correspond to the MultiClinNER task at the 11th SMM4H-HeaRD Workshop (ACL 2026).

Model loading

This model uses a custom MTL architecture, and therefore cannot be loaded with:

python
AutoModelForTokenClassification.from_pretrained(...)

Instead, this repository provides a PyTorch checkpoint (`.pt`) which includes:

  • —Encoder weights
  • —All language-specific heads

How to use

To use the model:

  1. 1.Download the .pt file
  2. 2.Load it using the custom architecture

To facilitate this process, we provide an inference script in a [GitHub repository]() that:

  • —Loads the model from the checkpoint using the custom architecture
  • —Processes .txt files from an input directory
  • —Identifies disease mentions in the language handled by the selected classification head (task)
  • —Exports predictions as a TSV file in the format required for the MultiClinAI evaluation library:
text
filename                              label      start_span    end_span    text
MultiClinNER-es-test-disease-00019    DISEASE    158           169         miocarditis

⚠ Note: We recommend pre-tokenizing the input text into words, as this matches the training setup. Providing raw text directly may lead to slightly degraded performance.

Limitations and bias

At the time of submission, no formal bias or fairness evaluation has been conducted. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.

Evaluation

Evaluation was conducted using strict (exact match) and character-level metrics on the MultiClinNER test set.

LanguageStrict PStrict RStrict F1Char PChar RChar F1
es0.63110.67240.65110.75690.80270.7791
it0.66350.68160.67240.78440.80650.7953
ro0.67580.68660.68110.78790.80080.7943
Average0.66820.7896

Additional information

Authors

NLP4BIA team at the Barcelona Supercomputing Center (nlp4bia@bsc.es).

Contact information

judith.rosell [at] bsc.es

Funding

This model is part of the DataTools4Heart project, funded by the European Union’s Horizon Europe Framework Under Grant Agreement No. 101057849.