Publicly Available Clinical BERT Embeddings
Paper • 1904.03323 • Published • 2
How to use onnx-community/deid_bert_i2b2-ONNX with Transformers.js:
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';
// Allocate pipeline
const pipe = await pipeline('token-classification', 'onnx-community/deid_bert_i2b2-ONNX');This is an ONNX version of obi/deid_bert_i2b2. It was automatically converted and uploaded using this Hugging Face Space.
See the pipeline documentation for token-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TokenClassificationPipeline
| I2B2 | I2B2 | |||
|---|---|---|---|---|
| TRAIN SET - 790 NOTES | TEST SET - 514 NOTES | |||
| PHI LABEL | COUNT | PERCENTAGE | COUNT | PERCENTAGE |
| DATE | 7502 | 43.69 | 4980 | 44.14 |
| STAFF | 3149 | 18.34 | 2004 | 17.76 |
| HOSP | 1437 | 8.37 | 875 | 7.76 |
| AGE | 1233 | 7.18 | 764 | 6.77 |
| LOC | 1206 | 7.02 | 856 | 7.59 |
| PATIENT | 1316 | 7.66 | 879 | 7.79 |
| PHONE | 317 | 1.85 | 217 | 1.92 |
| ID | 881 | 5.13 | 625 | 5.54 |
| PATORG | 124 | 0.72 | 82 | 0.73 |
| 4 | 0.02 | 1 | 0.01 | |
| OTHERPHI | 2 | 0.01 | 0 | 0 |
| TOTAL | 17171 | 100 | 11283 | 100 |
Steps on how this model was trained can be found here: Training. The "model_name_or_path" was set to: "emilyalsentzer/Bio_ClinicalBERT".
Training details:
Post a Github issue on the repo: Robust DeID.
Base model
obi/deid_bert_i2b2