Update README.md
Browse files
README.md
CHANGED
@@ -23,8 +23,8 @@ import torch
|
|
23 |
from tqdm.auto import tqdm
|
24 |
from transformers import AutoTokenizer, AutoModel
|
25 |
|
26 |
-
tokenizer = AutoTokenizer.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext")
|
27 |
-
model = AutoModel.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext").cuda()
|
28 |
|
29 |
# replace with your own list of entity names
|
30 |
all_names = ["covid-19", "Coronavirus infection", "high fever", "Tumor of posterior wall of oropharynx"]
|
|
|
23 |
from tqdm.auto import tqdm
|
24 |
from transformers import AutoTokenizer, AutoModel
|
25 |
|
26 |
+
tokenizer = AutoTokenizer.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext-mean-token")
|
27 |
+
model = AutoModel.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext-mean-token").cuda()
|
28 |
|
29 |
# replace with your own list of entity names
|
30 |
all_names = ["covid-19", "Coronavirus infection", "high fever", "Tumor of posterior wall of oropharynx"]
|