All models

Literature · portugueseNLP

medialbertina pt-pt 1.5b NER

A 1.5-billion-parameter European Portuguese DeBERTaV2 model for named entity recognition in electronic medical records.

What medialbertina pt-pt 1.5b NER is

MediAlbertina PT-PT 1.5B NER is a clinical language encoder fine-tuned to extract medical concepts from European Portuguese clinical text. It was developed by a joint team from ISCTE-IUL in Portugal and Select Data in the United States, forming part of the MediAlbertina family—the first publicly available medical language models trained with genuine European Portuguese data.

The model addresses the challenge of medical information extraction from clinical narratives written in European Portuguese. Electronic medical records (EMRs) contain non-standard abbreviations, technical terminology and syntax that standard Portuguese encoders often struggle to process accurately. By training directly on clinical notes from Portugal's largest public hospital, MediAlbertina adapts language representations specifically to this healthcare domain.

Researchers and clinicians can use this encoder to extract structured entities from unstructured text, helping automate chart reviews, phenotyping, pharmacological studies and medical information retrieval.

How it works

The model is built on the DeBERTaV2 transformer architecture. It was constructed by continuing the pre-training of PORTULAN's Albertina base models using European Portuguese electronic medical records shared by Portugal's largest public hospital. The resulting base model, MediAlbertina PT-PT 1.5B, was subsequently fine-tuned for token classification.

The model predicts eight clinical entity types across input tokens: Diagnostico (diseases and conditions adhering to ICD-10-CM guidelines), Sintoma (symptoms and complaints), Medicamento (medications and administered substances), Dosagem (dosages and frequencies), ProcedimentoMedico (procedures and interventions), SinalVital (measurable physiological indicators), Resultado (numerical or descriptive findings), and Progresso (patient condition trajectories).

Key facts

Architecture
DeBERTaV2 (BERT family encoder)
Model size
1.5 billion parameters
Task
Named Entity Recognition (token classification)
Primary language
European Portuguese (pt-PT)
Input modality
Text
Output modality
Token labels with confidence scores
GPU memory requirement
24 GB

What you can use it for

Pharmacological monitoring
Detect administered medications, nutritional supplements, blood transfusions and associated dosage instructions within patient documentation.
Clinical measurement identification
Identify vital sign indicators (such as blood pressure, cholesterol or diuresis) alongside their corresponding numerical or qualitative results.

Run it here

No installation and no GPU of your own: fill in the inputs and it runs on our servers. Results stay in your browser unless you sign in.

Runs on On-demand GPU

Runs on our servers with on-demand compute. A first run needs time to load the model; active capacity can be reused and scales down when idle.

Run this model

medialbertina pt-pt 1.5b NER

Entities are labelled token by token.

Needs text

Strengths and limits

Good at

  • Trained on real European Portuguese electronic medical records rather than translated datasets or general-domain Portuguese text.
  • Outperforms its general-domain equivalent (Albertina PT-PT 1.5B) in token classification, achieving a precision of 0.842, recall of 0.845, and F1 score of 0.843.
  • Covers eight fine-grained clinical entity classes aligned with clinical standards such as ICD-10-CM.

Watch out for

  • For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
  • Requires significant hardware resources, needing 24 GB of GPU memory for inference.
  • Fine-tuning annotations were derived from a single institution (Portugal's largest public hospital), which may limit adaptation to clinical shorthand used in other regional healthcare settings.
  • Specialised specifically for European Portuguese and is not adapted for other variants such as Brazilian Portuguese.

Inputs and outputs

You provide

  • Text

    Entities are labelled token by token.

You get back

  • Labels with confidence scores, highest first.

medialbertina pt-pt 1.5b NER API

The same run, from your own code: one HTTP request with an API key, billed in the same credits as the Run button. A fast run answers with its outputs; a longer one answers with a poll_url to read.

bash
curl https://corollary-labs.com/api/v1/models/portuguesenlp-medialbertina-pt-pt-1-5b-ner/runs \
  -H "Authorization: Bearer $COROLLARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "text": "<Text>"
  }
}'

Make an API key, then read the models reference.

Licence

Commercial use permitted · mit

mit, as the repository declares it. Read by the catalogue intake on 2026-11-28.

Questions

Can I use medialbertina pt-pt 1.5b NER commercially?

Commercial use permitted. mit, as the repository declares it. Read by the catalogue intake on 2026-11-28.

How do I run medialbertina pt-pt 1.5b NER without installing anything?

Use the form under “Run it here” on this page: fill in the inputs and press Run model. It runs on our servers on 1× A100 16GB, typically in 1.2min, and a run costs about 70 credits. Visitors without an account get 1,000 credits a month.

Which entity categories does the model recognise?

The model identifies eight categories: Diagnostico (diseases/conditions), Sintoma (symptoms), Medicamento (medications/fluids), Dosagem (dosages/frequencies), ProcedimentoMedico (interventions/exams), SinalVital (vital signs), Resultado (test or measurement results), and Progresso (patient clinical trajectory).

What architecture is MediAlbertina based on?

It is an encoder-based model using the DeBERTaV2 architecture, adapted from PORTULAN's Albertina 1.5B foundation model.

What is the expected input format?

It accepts unstructured natural language text in European Portuguese, such as clinical progress notes or examination descriptions, and returns labelled spans with confidence scores.

How to cite it

Miguel Nunes, João Boné, João Ferreira, Pedro Chaves, Luís Elvas. MediAlbertina: An European Portuguese medical language model. Computers in Biology and Medicine, Volume 182, 2024. https://doi.org/10.1016/j.compbiomed.2024.109233

Written from medialbertina pt-pt 1.5b NER's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.