IIC / RigoBERTa-Clinical

huggingface.co
Total runs: 1.2K
24-hour runs: 0
7-day runs: -56
30-day runs: 636
Model's Last Updated: May 12 2026
fill-mask

Introduction of RigoBERTa-Clinical

Model Details of RigoBERTa-Clinical

RigoBERTa Clinical

RigoBERTa Clinical is a state-of-the-art clinical encoder language model for Spanish, developed through domain-adaptive pretraining on the largest publicly available Spanish clinical corpus, ClinText-SP . This model significantly improves performance on multiple clinical NLP benchmarks while offering robust language understanding in the clinical domain.

Model Details
Model Description

RigoBERTa Clinical was built by further pretraining the general-purpose RigoBERTa 2 on a meticulously curated clinical corpus. The pretraining leverages masked language modeling (MLM) to adapt the model’s linguistic knowledge to the Spanish clinical domain.

  • Developed by: IIC
  • Model type: Encoder
  • Language(s) (NLP): Spanish
  • License: rigoclinical-nc (permissive Non Commercial)
  • Finetuned from model: RigoBERTa 2
Model Sources
Intended Use & Limitations
Intended Use

RigoBERTa Clinical is designed for:

  • Clinical text understanding in Spanish.
  • Applications in healthcare NLP tasks such as clinical note classification, entity recognition in clinical texts, and related downstream tasks.
  • Research and development purposes, including benchmarking and further model adaptation.
Limitations & Caveats
  • Domain Specificity: Although highly effective for Spanish clinical texts, the model may not generalize to other domains or languages.
  • Data Biases: ClinText-SP, while the largest corpus available, may contain biases due to source selection and the inherent limitations of public clinical data.
  • Operational Cost: Despite being an encoder-based model with relatively lower computational costs compared to generative LLMs, deployment in resource-constrained settings should be carefully evaluated.
Training Details
Training Data: ClinText-SP

ClinText-SP is the largest open Spanish clinical corpus and includes data from various open sources:

  • Volume: ~26 million tokens, 35,996 samples
  • Sample Details: Average of ~700 tokens per sample; contains both long-form clinical cases and shorter, schematic texts,
  • Sources: Medical journals, clinical shared tasks, radiological reports, and Wikipedia extracts.
  • Availability: ClinText-SP on Hugging Face Datasets
Training Procedure
Preprocessing
  • Tokenizer: Uses the tokenizer from RigoBERTa 2 to ensure consistency with the base model.
  • Handling Long Sequences: Clinical texts exceeding 512 tokens are segmented with a stride of 128 tokens; shorter sequences are padded as necessary.
  • OOV Handling: Out-of-vocabulary words are managed using subword tokenization, maintaining robust handling of clinical terminology.
Training Details
  • Objective: Masked Language Modeling (MLM)
  • Epochs: 2 full epochs (with the best model selected after ~1.8 epochs, based on downstream performance)
  • Hyperparameters Grid:
    • Batch Sizes: 32, 64, 128
    • Learning Rates: Ranges of {5e-6, 1e-5, 2e-5} for batch size 32, {1e-5, 2e-5, 4e-5} for 64, and {1e-5, 4e-5, 8e-5} for 128
  • Best Settings: Batch size = 32, Learning rate = 2e-5, 2800 training steps ( 1.8 epochs)
  • Optimizer: AdamW with weight decay of 0.1
  • Hardware: Trained on a single NVIDIA A100 GPU (80GB memory)
Evaluation

RigoBERTa Clinical was evaluated on several Spanish clinical NLP tasks including Named Entity Recognition (NER) and multilabel classification. Evaluation metrics (F1 score and micro-averaged F1) indicate that the model outperforms previous clinical and general Spanish language models.

Key Results:

  • Achieves top performance on datasets such as cantemist, meddocan, and livingner1, among others.
  • Consistently surpasses the performance of models that were trained solely on clinical data, demonstrating the advantage of leveraging general domain knowledge during domain adaptation.
  • Detailed benchmarking results and comparisons are provided in the associated publication.

For a full breakdown of results (including performance on multilingual baselines and other clinical-specific models), please refer to Table 1 and the Nemenyi plot in the original paper.

Nemenji plot

Citation

If you use RigoBERTa Clinical in your research, please cite the associated paper:

BibTeX:

@misc{subies2025clintextsprigobertaclinicalnew,
      title={ClinText-SP and RigoBERTa Clinical: a new set of open resources for Spanish Clinical NLP}, 
      author={Guillem García Subies and Álvaro Barbero Jiménez and Paloma Martínez Fernández},
      year={2025},
      eprint={2503.18594},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2503.18594}, 
}

APA:

Subies, G. G., Barbero Jiménez, Á., & Martínez Fernández, P. (2025). ClinText-SP and RigoBERTa Clinical: A new set of open resources for Spanish Clinical NLP. arXiv. https://arxiv.org/abs/2503.18594
Model Card Authors and Contact

Guillem García Subies: [email protected] , [email protected]

Runs of IIC RigoBERTa-Clinical on huggingface.co

1.2K
Total runs
0
24-hour runs
-62
3-day runs
-56
7-day runs
636
30-day runs

More Information About RigoBERTa-Clinical huggingface.co Model

More RigoBERTa-Clinical license Visit here:

https://choosealicense.com/licenses/rigoclinical-nc

RigoBERTa-Clinical huggingface.co

RigoBERTa-Clinical huggingface.co is an AI model on huggingface.co that provides RigoBERTa-Clinical's model effect (), which can be used instantly with this IIC RigoBERTa-Clinical model. huggingface.co supports a free trial of the RigoBERTa-Clinical model, and also provides paid use of the RigoBERTa-Clinical. Support call RigoBERTa-Clinical model through api, including Node.js, Python, http.

RigoBERTa-Clinical huggingface.co Url

https://huggingface.co/IIC/RigoBERTa-Clinical

IIC RigoBERTa-Clinical online free

RigoBERTa-Clinical huggingface.co is an online trial and call api platform, which integrates RigoBERTa-Clinical's modeling effects, including api services, and provides a free online trial of RigoBERTa-Clinical, you can try RigoBERTa-Clinical online for free by clicking the link below.

IIC RigoBERTa-Clinical online free url in huggingface.co:

https://huggingface.co/IIC/RigoBERTa-Clinical

RigoBERTa-Clinical install

RigoBERTa-Clinical is an open source model from GitHub that offers a free installation service, and any user can find RigoBERTa-Clinical on GitHub to install. At the same time, huggingface.co provides the effect of RigoBERTa-Clinical install, users can directly use RigoBERTa-Clinical installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

RigoBERTa-Clinical install url in huggingface.co:

https://huggingface.co/IIC/RigoBERTa-Clinical

Url of RigoBERTa-Clinical

RigoBERTa-Clinical huggingface.co Url

Provider of RigoBERTa-Clinical huggingface.co

IIC
ORGANIZATIONS

Other API from IIC

huggingface.co

Total runs: 5.7K
Run Growth: 744
Growth Rate: 13.17%
Updated:June 20 2025
huggingface.co

Total runs: 378
Run Growth: -371
Growth Rate: -105.70%
Updated:November 21 2025
huggingface.co

Total runs: 275
Run Growth: 96
Growth Rate: 34.91%
Updated:March 12 2025
huggingface.co

Total runs: 104
Run Growth: 36
Growth Rate: 33.96%
Updated:November 25 2024
huggingface.co

Total runs: 100
Run Growth: 27
Growth Rate: 27.00%
Updated:March 24 2025
huggingface.co

Total runs: 6
Run Growth: -2
Growth Rate: -28.57%
Updated:January 17 2025