Update README.md
Browse files
README.md
CHANGED
@@ -38,9 +38,14 @@ VetBERT was further finetuned on a set of 5002 annotated clinical notes to class
|
|
38 |
Load the model via the transformers library:
|
39 |
|
40 |
```
|
41 |
-
from transformers import AutoTokenizer,
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
44 |
```
|
45 |
|
46 |
## Citation
|
|
|
38 |
Load the model via the transformers library:
|
39 |
|
40 |
```
|
41 |
+
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
42 |
+
|
43 |
+
tokenizer = AutoTokenizer.from_pretrained("havocy28/VetBERT")
|
44 |
+
model = AutoModelForMaskedLM.from_pretrained("havocy28/VetBERT")
|
45 |
+
|
46 |
+
VetBERT_masked = pipeline("fill-mask", model=model, tokenizer=tokenizer)
|
47 |
+
VetBERT('Suspected pneuomina, will require an [MASK] but in the meantime will prescribed antibiotics')
|
48 |
+
|
49 |
```
|
50 |
|
51 |
## Citation
|