Update README.md
Browse files
README.md
CHANGED
@@ -54,8 +54,8 @@ def mean_pooling(model_output, attention_mask):
|
|
54 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
55 |
|
56 |
# Load model from HuggingFace Hub
|
57 |
-
tokenizer = AutoTokenizer.from_pretrained('S-PubMedBert-MedQuAD')
|
58 |
-
model = AutoModel.from_pretrained('S-PubMedBert-MedQuAD')
|
59 |
|
60 |
# Tokenize sentences
|
61 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
54 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
55 |
|
56 |
# Load model from HuggingFace Hub
|
57 |
+
tokenizer = AutoTokenizer.from_pretrained('TimKond/S-PubMedBert-MedQuAD')
|
58 |
+
model = AutoModel.from_pretrained('TimKond/S-PubMedBert-MedQuAD')
|
59 |
|
60 |
# Tokenize sentences
|
61 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|