Multi-Modal Foundation · PlanTL-GOB-ES
roberta-base-biomedical-clinical-es
Spanish RoBERTa model pretrained on biomedical literature and clinical notes for masked token prediction.
What roberta-base-biomedical-clinical-es is
roberta-base-biomedical-clinical-es is a domain-specific Spanish language model developed by the Text Mining Unit (TeMU) at the Barcelona Supercomputing Center under the Plan-TL framework. It is designed to provide specialised language representations for Spanish healthcare and biomedical natural language processing, addressing domains where general-purpose models often lack specialised terminology.
The model was trained on a combined corpus of over one billion tokens comprising biomedical literature, health-related web crawls, and authentic clinical records. While functioning as a masked language model out of the box, it serves primarily as a pretrained base for downstream fine-tuning across clinical and life sciences tasks.
How it works
The model employs the RoBERTa-base architecture and was pretrained via masked language modelling at the subword level. It uses a byte-level Byte-Pair Encoding (BPE) tokeniser with a vocabulary size of 52,000 tokens. Pretraining was run for 48 hours across 16 NVIDIA V100 GPUs (16 GB DDRAM) using the Adam optimiser, a peak learning rate of 0.0005, and an effective batch size of 2,048 sentences.
The pretraining data combines cleaned biomedical text with uncleaned clinical documentation.
Key facts
- Architecture
- RoBERTa-base
- Language
- Spanish
- Vocabulary size
- 52,000 tokens (byte-level BPE)
- Training data volume
- Over 1 billion tokens
- Input
- Spanish text sequence with masked tokens
- Output
- Predicted token replacements with confidence scores
What you can use it for
- Masked language prediction
- Predict missing or masked words in Spanish clinical texts and biomedical literature using context-aware vocabulary scoring.
- Pharmacological named entity recognition
- Fine-tune the model to identify mentions of drugs and chemical compounds in Spanish clinical documents, as evaluated on PharmaCoNER.
- Oncology entity extraction
- Fine-tune the model to identify tumour morphology entities in Spanish medical publications, evaluated using the CANTEMIST track.
- Hospital discharge report parsing
- Fine-tune representations to extract clinical variables from hospital discharge summaries, as benchmarked on ICTUSnet stroke patient reports.
- Clinical text classification
- Fine-tune the model to categorise clinical records, patient histories, and specialised biomedical publications.
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
roberta-base-biomedical-clinical-es
Strengths and limits
Good at
- Outperforms mBERT and BETO on Spanish medical named entity recognition benchmarks including PharmaCoNER, CANTEMIST, and ICTUSnet.
- Incorporates over 91 million tokens of authentic, uncleaned clinical notes and discharge reports to preserve real-world clinical language habits.
- Trained on a diverse biomedical corpus exceeding one billion tokens from patents, medical web sources, and scientific articles.
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.
- Ready to use without modification only for masked language modelling; downstream tasks such as named entity recognition require fine-tuning.
- Potential biases embedded from web-crawled training data have not been formally quantified or evaluated.
- Requires substantial GPU memory (16 GB) for local pipeline execution.
Inputs and outputs
You provide
Sequence with a mask
Use the model's mask token, commonly [MASK] or <mask>.
You get back
Labels with confidence scores, highest first.
roberta-base-biomedical-clinical-es 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.
curl https://corollary-labs.com/api/v1/models/plantl-gob-es-roberta-base-biomedical-clinical-es/runs \
-H "Authorization: Bearer $COROLLARY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"sequence": "<Sequence with a mask>"
}
}'Make an API key, then read the models reference.
Licence
Commercial use permitted · apache-2.0
apache-2.0, as the repository declares it. Read by the catalogue intake on 2026-11-28.
Questions
Can I use roberta-base-biomedical-clinical-es commercially?
Commercial use permitted. apache-2.0, as the repository declares it. Read by the catalogue intake on 2026-11-28.
How do I run roberta-base-biomedical-clinical-es 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 CPU only, typically in 13s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.
Can this model be used immediately for classification or named entity recognition?
No. The model is released as a pretrained masked language model and must be fine-tuned on task-specific labelled datasets before it can perform classification or entity extraction.
How does the model compare to general Spanish and multilingual models?
When evaluated on Spanish biomedical named entity recognition datasets (PharmaCoNER, CANTEMIST, and ICTUSnet), it achieved higher F1 scores than both multilingual BERT (mBERT) and BETO.
What tokenisation scheme does the model use?
It uses a byte-level Byte-Pair Encoding (BPE) tokeniser with a vocabulary size of 52,000 tokens.
How to cite it
Casimiro Pio Carrino, Jordi Armengol-Estapé, Asier Gutiérrez-Fandiño, Joan Llop-Palao, Marc Pàmies, Aitor Gonzalez-Agirre, and Marta Villegas. Biomedical and Clinical Language Models for Spanish: On the Benefits of Domain-Specific Pretraining in a Mid-Resource Scenario. arXiv:2109.03570, 2021.
Written from roberta-base-biomedical-clinical-es'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.
