Literature · IIC
roberta-large-bne-pharmaconer
A Spanish clinical transformer model fine-tuned for token classification on the PharmaCoNER dataset.
What roberta-large-bne-pharmaconer is
roberta-large-bne-pharmaconer is a biomedical and clinical token-classification model developed by the Instituto de Ingeniería del Conocimiento (IIC). It is a fine-tuned adaptation of the Spanish roberta-large-bne encoder, prepared for named entity recognition (NER) benchmarks.
The model was created to assess Spanish encoder-based architectures on clinical text mining tasks. Evaluated on the PharmaCoNER (PlanTL-GOB-ES/pharmaconer) corpus, it achieved an F1 score of 0.914.
This tool is designed strictly for research tasks in biomedical literature and clinical text processing. It is not a certified medical device and cannot be employed for diagnosis, treatment, or making clinical decisions.
How it works
The model uses the RoBERTa encoder architecture, fine-tuning the pretrained roberta-large-bne checkpoint for token classification. Training was conducted over up to 10 epochs with early stopping patience set to 3.
Optimization was performed using AdamW with a learning rate of 1e-05 and a batch size of 32. Weight decay, classifier dropout, warmup ratio, and warmup steps were all set to 0.
Key facts
- Base architecture
- RoBERTa (roberta-large-bne)
- Task
- Token classification (named entity recognition)
- Language
- Spanish (es)
- Fine-tuning dataset
- PharmaCoNER (PlanTL-GOB-ES/pharmaconer)
- Evaluation metric
- F1 score of 0.914
- Input format
- Text
- Output format
- Labels with confidence scores
- Frameworks
- PyTorch, Transformers, Safetensors
What you can use it for
- Clinical Named Entity Recognition in Spanish
- Extracting domain-specific biological or pharmacological entities from Spanish clinical notes and medical narratives.
- Spanish Clinical NLP Benchmarking
- Serving as a baseline or comparison model in evaluations of encoder architectures on Spanish clinical text classification and NER datasets.
- Literature and Corpus Annotation
- Processing biomedical and clinical literature written in Spanish to generate token-level annotations with associated confidence scores.
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-large-bne-pharmaconer
Strengths and limits
Good at
- Achieves a high token-classification performance with an F1 score of 0.914 on the PharmaCoNER benchmark.
- Specifically adapted for Spanish-language medical and clinical texts from the roberta-large-bne foundation model.
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.
- Intended solely for research purposes and cannot be used as a medical device or to direct patient diagnosis and treatment.
- Restricted to token classification tasks in Spanish text formatted according to the PharmaCoNER dataset structure.
Inputs and outputs
You provide
Text
Entities are labelled token by token.
You get back
Labels with confidence scores, highest first.
roberta-large-bne-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.
curl https://corollary-labs.com/api/v1/models/iic-roberta-large-bne-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 roberta-large-bne-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 roberta-large-bne-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 21s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.
What is the primary function of roberta-large-bne-pharmaconer?
It performs token classification to detect and label named entities in Spanish biomedical and clinical texts.
What training dataset was used to fine-tune the model?
It was fine-tuned on the PharmaCoNER dataset (PlanTL-GOB-ES/pharmaconer).
Can this model be applied in hospital workflows for clinical diagnoses?
No. The model is strictly for research use and is not approved or designed for clinical decision-making, diagnosis, or patient care.
How to cite it
García Subies, Guillem and Barbero Jiménez, Álvaro and Martínez Fernández, Paloma. A comparative analysis of Spanish Clinical encoder-based models on NER and classification tasks. Journal of the American Medical Informatics Association, 31(9): 2137-2146, 2024. doi:10.1093/jamia/ocae054.
Written from roberta-large-bne-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.
