All models

Literature · PlanTL-GOB-ES

bsc-bio-ehr-es-pharmaconer

A Spanish biomedical RoBERTa model fine-tuned for extracting substances, compounds, and proteins from clinical text.

What bsc-bio-ehr-es-pharmaconer is

bsc-bio-ehr-es-pharmaconer is a biomedical named entity recognition (NER) model designed for Spanish clinical and healthcare text. Developed by the Text Mining Unit (TeMU) at the Barcelona Supercomputing Center (BSC) in collaboration with the Spanish State Secretariat for Digitalization and Artificial Intelligence (SEDIA), the model operates as a token-classification pipeline to identify domain-specific entities.

The model addresses the challenge of information extraction in non-English clinical NLP, specifically targeting biomedical substances, chemical compounds, and proteins within Spanish documentation. It serves researchers who require automated entity recognition across Spanish biomedical literature, electronic health records (EHR), and clinical cases.

How it works

The system is built on the RoBERTa-base architecture and is fine-tuned from bsc-bio-ehr-es, a Spanish biomedical foundation model pre-trained from scratch on a 1.1-billion-token corpus comprising biomedical documents, clinical cases, and electronic health records. Fine-tuning is conducted on the PharmaCoNER dataset, an annotated collection targeting biomedical substance, chemical compound, and protein entities.

During inference, the model takes Spanish text as input and performs token-level classification, yielding label assignments alongside corresponding confidence scores for detected entities.

Key facts

Architecture
RoBERTa-base
Task
Token classification (Named Entity Recognition)
Language
Spanish
Fine-tuning dataset
PharmaCoNER
Pre-training corpus size
1.1 billion tokens
Evaluation F1 score
0.8913
Required GPU memory
16 GB
Inputs
Text
Outputs
Entity labels with confidence scores

What you can use it for

Substance and Compound Extraction
Detecting mentions of pharmaceutical substances and chemical compounds in Spanish clinical case reports and biomedical literature.
Protein Entity Recognition
Identifying protein references within unstructured Spanish clinical and biomedical text.
EHR Text Mining
Extracting pharmacological and biochemical entities from Spanish electronic health record notes for downstream research.

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

bsc-bio-ehr-es-pharmaconer

Entities are labelled token by token.

Needs text

Strengths and limits

Good at

  • Pre-trained on a domain-specific Spanish biomedical and clinical corpus containing 1.1 billion tokens.
  • Achieves an F1 score of 0.8913 on the PharmaCoNER evaluation benchmark.
  • Directly tailored to identify chemical compounds, substances, and protein entities in Spanish clinical contexts.

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.
  • The model is not a medical device and must not be used for diagnosis, clinical decisions, or treatment.
  • Pre-training corpora were gathered using web-crawling methods, introducing potential biases that have not been quantitatively evaluated.

Inputs and outputs

You provide

  • Text

    Entities are labelled token by token.

You get back

  • Labels with confidence scores, highest first.

bsc-bio-ehr-es-pharmaconer 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/plantl-gob-es-bsc-bio-ehr-es-pharmaconer/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 · apache-2.0

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

Questions

Can I use bsc-bio-ehr-es-pharmaconer 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 bsc-bio-ehr-es-pharmaconer 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 52s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.

What entity types can this model identify?

The model is fine-tuned on the PharmaCoNER dataset to recognise mentions of substances, chemical compounds, and proteins in Spanish text.

What base model does this system use?

It is fine-tuned from bsc-bio-ehr-es, a RoBERTa-base model pre-trained on 1.1 billion clean, deduplicated tokens from Spanish biomedical documents, EHR records, and clinical cases.

Can this model be used in clinical practice for patient diagnosis?

No. The model is strictly for research purposes and is not certified as a medical device for diagnosis, treatment, or clinical decision-making.

How to cite it

Carrino, Casimiro Pio and Llop, Joan and Pàmies, Marc and Gutiérrez-Fandiño, Asier and Armengol-Estapé, Jordi and Silveira-Ocampo, Joaquín and Valencia, Alfonso and Gonzalez-Agirre, Aitor and Villegas, Marta. Pretrained Biomedical Language Models for Clinical NLP in Spanish. Proceedings of the 21st Workshop on Biomedical Language Processing, 2022, pp. 193–199. https://doi.org/10.18653/v1/2022.bionlp-1.19

Written from bsc-bio-ehr-es-pharmaconer'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.