quicklearner404's picture
Upload ClinicalNER ONNX model
499bb0c verified
|
Raw History Blame Contribute Delete
1.49 kB
metadata
license: other
language: en
library_name: onnx
pipeline_tag: token-classification
datasets:
  - tner/bc5cdr
base_model: distilroberta-base
tags:
  - ner
  - biomedical
  - clinical
  - onnx
  - int8

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.