Update README.md
Browse files
README.md
CHANGED
|
@@ -65,8 +65,8 @@ import torch
|
|
| 65 |
import torch.nn.functional as F
|
| 66 |
|
| 67 |
# Load model (trust_remote_code=True required for custom model)
|
| 68 |
-
tokenizer = AutoTokenizer.from_pretrained("nikhil061307/contrastive-
|
| 69 |
-
model = AutoModel.from_pretrained("nikhil061307/contrastive-
|
| 70 |
|
| 71 |
def get_clinical_embeddings(texts, max_length=256):
|
| 72 |
"""Get embeddings for clinical texts with [ENTITY] support."""
|
|
|
|
| 65 |
import torch.nn.functional as F
|
| 66 |
|
| 67 |
# Load model (trust_remote_code=True required for custom model)
|
| 68 |
+
tokenizer = AutoTokenizer.from_pretrained("nikhil061307/contrastive-learning-bert-added-token-v5")
|
| 69 |
+
model = AutoModel.from_pretrained("nikhil061307/contrastive-learning-bert-added-token-v5", trust_remote_code=True)
|
| 70 |
|
| 71 |
def get_clinical_embeddings(texts, max_length=256):
|
| 72 |
"""Get embeddings for clinical texts with [ENTITY] support."""
|