Commit
•
6433e0a
1
Parent(s):
c93d5a9
fix typo (#1)
Browse files- fix typo (24f23a331f410b96b8312d69bc197b5ce456e16b)
Co-authored-by: Avinash <[email protected]>
README.md
CHANGED
@@ -30,11 +30,11 @@ gatortron-large | 8.9 billion
|
|
30 |
```python
|
31 |
from transformers import AutoModel, AutoTokenizer, AutoConfig
|
32 |
|
33 |
-
|
34 |
config=AutoConfig.from_pretrained('UFNLP/gatortron-base')
|
35 |
mymodel=AutoModel.from_pretrained('UFNLP/gatortron-base')
|
36 |
|
37 |
-
encoded_input=
|
38 |
encoded_output = mymodel(**encoded_input)
|
39 |
print (encoded_output)
|
40 |
|
|
|
30 |
```python
|
31 |
from transformers import AutoModel, AutoTokenizer, AutoConfig
|
32 |
|
33 |
+
tokenizer= AutoTokenizer.from_pretrained('UFNLP/gatortron-base')
|
34 |
config=AutoConfig.from_pretrained('UFNLP/gatortron-base')
|
35 |
mymodel=AutoModel.from_pretrained('UFNLP/gatortron-base')
|
36 |
|
37 |
+
encoded_input=tokenizer("Bone scan: Negative for distant metastasis.", return_tensors="pt")
|
38 |
encoded_output = mymodel(**encoded_input)
|
39 |
print (encoded_output)
|
40 |
|