fix typo
#1
by
avinashr175
- opened
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 |
|