vidulpanickan/steam-clinical-assertion-demo
0
⚡ STEAM Clinical Assertion
Type or paste a clinical note, type your terms of interest, and click Check — the STEAM BERT model labels each occurrence on five assertion axes (negated, certainty, realis, experiencer, temporality) and rolls them up to an i2b2 assertion label.
Two steps:
- Find the terms — word-anchored matching (~O(n)); clinical-aware tokens so
1.5,p.o.,mg/dl, andcovid-19stay intact. - Classify — a BERT encoder with five assertion heads (run as an int8 ONNX model via onnxruntime — no PyTorch, CPU-friendly).
- Model:
vidulpanickan/steam-clinical-assertion-5axis(the Space loadsmodel.int8.onnx). - Sample notes are synthetic (no PHI).
Files
Run locally
pip install -r requirements.txt
python app.pyThe model (model.int8.onnx + tokenizer) is downloaded from the Hub on first run and cached. Set MODEL_ID to point at a different model repo, or STEAM_ONNX=model.onnx to use the full-precision graph instead of int8.
