avinashr175
commited on
Commit
•
24f23a3
1
Parent(s):
c93d5a9
fix typo
Browse files
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 |
|