havocy28 commited on
Commit
2c98525
1 Parent(s): 05a3dcc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
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, AutoModel
42
- tokenizer = AutoTokenizer.from_pretrained("havocy28/VetBERTDx")
43
- model = AutoModel.from_pretrained("havocy28/VetBERTDx")
 
 
 
 
 
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