Run this model with HF Jobs
Run sander-puts/codiesp-convention-crossencoder-es on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/sander-puts/codiesp-convention-crossencoder-es. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/sander-puts/codiesp-convention-crossencoder-es on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use sander-puts/codiesp-convention-crossencoder-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sander-puts/codiesp-convention-crossencoder-es with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sander-puts/codiesp-convention-crossencoder-es")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sander-puts/codiesp-convention-crossencoder-es") model = AutoModelForSequenceClassification.from_pretrained("sander-puts/codiesp-convention-crossencoder-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CodiEsp cross-encoder for the learned IMPLICIT layer (Spanish)
Scores a (mention in context, candidate ICD-10 code) pair: how likely the CodiEsp annotators are to give that code. It is one feature of the learned IMPLICIT layer of CEI-Trace, which chooses among the codes the official books offer for each mention; it never proposes codes by itself.
- Base model: PlanTL-GOB-ES/roberta-base-biomedical-clinical-es (Apache-2.0), a 125-million-parameter Spanish clinical encoder, with a sequence-classification head.
- Training: CodiEsp training and development annotations (the configuration used for the test run).
- Load with
transformers(AutoModelForSequenceClassification); pairs are built byscripts/convention_crossenc.py.
This model learns one dataset's annotation practice, mistakes included, by design: use it only as a labelled IMPLICIT layer.
Use
Part of CEI-Trace (https://github.com/putssander/CEI-Trace), which codes clinical text by the official ICD-10 books with local language models and adds each setting's guidelines and practice as separate layers. Article: Puts S, Dekker A. CEI-Trace: fitting ICD-10 coding to a setting's guidelines and practice in layers around one official core (2026).
Not for clinical use. Trained on published Spanish clinical case reports (CodiEsp, CC BY 4.0; Miranda-Escalada et al., CLEF eHealth 2020, doi:10.5281/zenodo.3837305).
- Downloads last month
- 22