Commit
•
a505b52
1
Parent(s):
9e5e1b5
Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
2 |
|
3 |
modelname = "rajpurkarlab/biobert-finetuned-change-classification"
|
4 |
tokenizer = AutoTokenizer.from_pretrained(modelname)
|
5 |
model = AutoModelForTokenClassification.from_pretrained(modelname)
|
|
|
|
|
|
|
|
|
6 |
|
|
|
1 |
+
---
|
2 |
+
|
3 |
+
language:
|
4 |
+
- py
|
5 |
+
metrics:
|
6 |
+
- f1
|
7 |
+
|
8 |
+
---
|
9 |
+
|
10 |
+
To use our fine-tuned BioBERT model to remove references to priors from radiology reports, run the following:
|
11 |
+
|
12 |
+
```python
|
13 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
14 |
|
15 |
modelname = "rajpurkarlab/biobert-finetuned-change-classification"
|
16 |
tokenizer = AutoTokenizer.from_pretrained(modelname)
|
17 |
model = AutoModelForTokenClassification.from_pretrained(modelname)
|
18 |
+
```
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
|