CoolFace
Modelpublic

BSC-NLP4BIA/DT4H_XLM-R_stl_multilingual_procedure

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

DT4HXLM-Rstlmultilingualprocedure

Model Description

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

  • —Architecture: Single-task learning (STL)
  • —Training setup: Multilingual, Monolabel (PROCEDURE)
  • —Supported languages:
  • —Spanish (es)
  • —Italian (it)
  • —Romanian (ro)
  • —English (en)
  • —Dutch (nl)
  • —Swedish (sv)
  • —Czech (cs)
  • —Base model: xlm-roberta-base
  • —Task: Token classification (NER)
  • —Label scheme: BIO

Training Data

The model is trained on multilingual clinical NER data combining MedProcNER and CardioCCC across the supported languages.

The data is 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).

How to use

You can load the model using Hugging Face Transformers:

python
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline

model_name = "judithrosell/DT4H_XLM-R_stl_multilingual_procedure"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForTokenClassification.from_pretrained(model_name)

ner_pipeline = pipeline("token-classification", model=model, tokenizer=tokenizer)

text = "Se inició un régimen de quimioterapia SMILE modificado."
predictions = ner_pipeline(text)
print(predictions)

⚠ 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.

The model outputs token-level predictions. For evaluation or submission, these predictions should be converted into character-level spans.

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

  • —Loads the model
  • —Processes .txt files from an input directory
  • —Extracts disease mentions
  • —Exports predictions as a TSV file in the format required for the MultiClinAI evaluation library:
text
filename                               label        start_span    end_span    text
MultiClinNER-en-test-procedure-29999   PROCEDURE    2142          2153        Chest X-ray

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.66370.67290.66820.79710.80410.8006
it0.65620.52440.58290.80240.63920.7116
ro0.71720.68740.70190.83530.79740.8159
en0.66230.60970.63490.81880.75180.7839
nl0.67150.64890.66000.79550.76660.7808
sv0.68450.68400.68420.80020.79600.7981
cz0.67070.66450.66760.80020.78930.7947
Average0.65710.7837

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 (DT4H) project, funded by the European Union’s Horizon Europe Framework Under Grant Agreement No. 101057849.