Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: "en"
|
3 |
+
tags:
|
4 |
+
- bert
|
5 |
+
- medical
|
6 |
+
- clinical
|
7 |
+
- assertion
|
8 |
+
- negation
|
9 |
+
|
10 |
+
---
|
11 |
+
|
12 |
+
# Clinical Assertion / Negation Classification BERT
|
13 |
+
|
14 |
+
## Model description
|
15 |
+
|
16 |
+
The model is introduced in the paper [Assertion Detection in Clinical Notes: Medical Language Models to the Rescue?
|
17 |
+
](https://aclanthology.org/2021.nlpmc-1.5/).
|
18 |
+
It is based on the [ClinicalBERT - Bio + Discharge Summary BERT Model](https://huggingface.co/emilyalsentzer/Bio_Discharge_Summary_BERT) by Alsentzer et al. and fine-tuned on assertion data from the [2010 i2b2 challenge](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3168320/).
|
19 |
+
|
20 |
+
|
21 |
+
#### How to use the model
|
22 |
+
|
23 |
+
You can load the model via the transformers library:
|
24 |
+
```
|
25 |
+
from transformers import AutoTokenizer, AutoModel
|
26 |
+
tokenizer = AutoTokenizer.from_pretrained("bvanaken/clinical-assertion-negation-bert")
|
27 |
+
model = AutoModel.from_pretrained("bvanaken/clinical-assertion-negation-bert")
|
28 |
+
```
|
29 |
+
The model expects input in the form of spans/sentences with one marked entity to classify as `PRESENT`, `ABSENT` or `POSSIBLE`. The entity in question is identified with the special token `[entity]` surrounding it.
|
30 |
+
|
31 |
+
Example input:
|
32 |
+
```
|
33 |
+
The patient recovered during the night and now denies any [entity] shortness of breath [entity].
|
34 |
+
```
|
35 |
+
|
36 |
+
### Cite
|
37 |
+
|
38 |
+
```bibtex
|
39 |
+
@inproceedings{van-aken-2021-assertion,
|
40 |
+
title = "Assertion Detection in Clinical Notes: Medical Language Models to the Rescue?",
|
41 |
+
author = "van Aken, Betty and
|
42 |
+
Trajanovska, Ivana and
|
43 |
+
Siu, Amy and
|
44 |
+
Mayrdorfer, Manuel and
|
45 |
+
Budde, Klemens and
|
46 |
+
Loeser, Alexander",
|
47 |
+
booktitle = "Proceedings of the Second Workshop on Natural Language Processing for Medical Conversations",
|
48 |
+
year = "2021",
|
49 |
+
address = "Online",
|
50 |
+
publisher = "Association for Computational Linguistics",
|
51 |
+
url = "https://aclanthology.org/2021.nlpmc-1.5",
|
52 |
+
doi = "10.18653/v1/2021.nlpmc-1.5"
|
53 |
+
}
|
54 |
+
```
|