tdobrxl commited on
Commit
b9d3a0f
·
1 Parent(s): feeb87f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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