Daniel Thompson commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,7 +23,23 @@ This model is a fine-tuned version of BioClinicalBERT to perform clinical text c
|
|
| 23 |
|
| 24 |
## Intended Use
|
| 25 |
|
| 26 |
-
This model is designed to be used for the classification of EHRs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Model description
|
| 29 |
|
|
|
|
| 23 |
|
| 24 |
## Intended Use
|
| 25 |
|
| 26 |
+
This model is designed to be used for the classification of EHRs to identify acute vascular surgery admissions.
|
| 27 |
+
|
| 28 |
+
### How to use
|
| 29 |
+
|
| 30 |
+
```python
|
| 31 |
+
from transformers import BertForSequenceClassification, BertTokenizer
|
| 32 |
+
|
| 33 |
+
# Load model and tokenizer
|
| 34 |
+
model = BertForSequenceClassification.from_pretrained("path_to_your_model", local_files_only=True)
|
| 35 |
+
tokenizer = BertTokenizer.from_pretrained("path_to_your_model", local_files_only=True)
|
| 36 |
+
|
| 37 |
+
# Tokenize input text
|
| 38 |
+
inputs = tokenizer("Your clinical text here", return_tensors="pt")
|
| 39 |
+
|
| 40 |
+
# Get model predictions
|
| 41 |
+
outputs = model(**inputs)
|
| 42 |
+
```
|
| 43 |
|
| 44 |
## Model description
|
| 45 |
|