ClinicalNER: chemical/drug and disease NER (ONNX, INT8)

DistilRoBERTa fine-tuned on BC5CDR for Chemical and Disease mentions, exported to ONNX and dynamically quantised to INT8 for CPU serving. Built for the ClinicalNER API.

Results (BC5CDR test set, entity-level, seqeval)

Metric Value
Precision 0.835
Recall 0.880
F1 (overall) 0.857
F1 Chemical 0.912
F1 Disease 0.793
F1 (INT8 ONNX model) 0.857

Files

File Use
model.int8.onnx Default serving model
model.onnx fp32 export
tokenizer.json RoBERTa BPE tokenizer for the tokenizers library (add_prefix_space, pre-split words)
config.json id2label and model version
metrics.json Full training and evaluation report

Usage

Inputs are pre-split words (see split_words in the GitHub repo); read each word's label from its first sub-token. The easiest way to use it is the API: docker compose up in the GitHub repo.

Limitations

Trained on PubMed abstracts, not hospital notes; expect lower accuracy on real clinical text. Research prototype, not for diagnosis or treatment decisions. Check the BioCreative V CDR terms before commercial use.

Downloads last month
46
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for quicklearner404/clinical-ner-bc5cdr-onnx

Quantized
(23)
this model

Dataset used to train quicklearner404/clinical-ner-bc5cdr-onnx