Views
No views yet
| Model | DisTEMIST | MedProcNER | SympTEMIST |
|---|---|---|---|
| ClinLinker | 0.845 | 0.898 | 0.909 |
| ClinLinker-KB-P | 0.853 | 0.891 | 0.918 |
| ClinLinker-KB-GP | 0.864 | 0.901 | 0.922 |
| SapBERT-XLM-R-large | 0.800 | 0.850 | 0.827 |
| RoBERTa biomedical | 0.600 | 0.668 | 0.609 |
1from transformers import AutoModel, AutoTokenizer
2import torch
3
4model = AutoModel.from_pretrained("ICB-UMA/ClinLinker")
5tokenizer = AutoTokenizer.from_pretrained("ICB-UMA/ClinLinker")
6
7mention = "insuficiencia renal aguda"
8inputs = tokenizer(mention, return_tensors="pt")
9with torch.no_grad():
10 outputs = model(**inputs)
11embedding = outputs.last_hidden_state[:, 0, :]
12print(embedding.shape)FaissEncoder class.Gallego, F., López-García, G., Gasco-Sánchez, L., Krallinger, M., Veredas, F.J. (2024). ClinLinker: Medical Entity Linking of Clinical Concept Mentions in Spanish. In: Franco, L., de Mulatier, C., Paszynski, M., Krzhizhanovskaya, V.V., Dongarra, J.J., Sloot, P.M.A. (eds) Computational Science – ICCS 2024. Lecture Notes in Computer Science, vol 14836. Springer, Cham. https://doi.org/10.1007/978-3-031-63775-9_19