Update README.md
Browse files
README.md
CHANGED
|
@@ -9,7 +9,7 @@ model = RobertaModel.from_pretrained("tdobrxl/ClinicBERT")
|
|
| 9 |
tokenizer = RobertaTokenizer.from_pretrained("tdobrxl/ClinicBERT")
|
| 10 |
|
| 11 |
text = "Randomized Study of Shark Cartilage in Patients With Breast Cancer."
|
| 12 |
-
last_hidden_state, pooler_output = model(tokenizer.encode(text)).last_hidden_state, model(tokenizer.encode(text)).pooler_output
|
| 13 |
```
|
| 14 |
|
| 15 |
### Masked Word Prediction
|
|
|
|
| 9 |
tokenizer = RobertaTokenizer.from_pretrained("tdobrxl/ClinicBERT")
|
| 10 |
|
| 11 |
text = "Randomized Study of Shark Cartilage in Patients With Breast Cancer."
|
| 12 |
+
last_hidden_state, pooler_output = model(tokenizer.encode(text, return_tensors="pt")).last_hidden_state, model(tokenizer.encode(text, return_tensors="pt")).pooler_output
|
| 13 |
```
|
| 14 |
|
| 15 |
### Masked Word Prediction
|