Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:267
loss:ContrastiveLoss
text-embeddings-inference
Instructions to use officialthinkingstack/Sentence-Matcher-v0.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use officialthinkingstack/Sentence-Matcher-v0.3 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("officialthinkingstack/Sentence-Matcher-v0.3") sentences = [ "hypertension\nThe patient's primary diagnosis is hypertension, as stated in the visit note.\nBP medications\nThe patient is on BP medications which are used to treat hypertension.\nBP management\nThe visit note mentions follow-up on BP management, indicating ongoing treatment for hypertension.\nHTN\nHTN is the abbreviation for hypertension, which is the patient's diagnosed condition.\nBP was measured at 138/90\nThis blood pressure reading supports the diagnosis of hypertension as it is elevated.\nmonthly bp at home have been around that number or higher\nConsistently high blood pressure readings confirm the presence of hypertension.\nmost likely diagnosis for this patient is hypertension\nThe visit note explicitly states that hypertension is the most likely diagnosis.", "Anemia, Unspecified", "Essential (Primary) Hypertension", "Dehydration" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 349 Bytes
2eea151 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [
{
"idx": 0,
"name": "0",
"path": "",
"type": "sentence_transformers.models.Transformer"
},
{
"idx": 1,
"name": "1",
"path": "1_Pooling",
"type": "sentence_transformers.models.Pooling"
},
{
"idx": 2,
"name": "2",
"path": "2_Normalize",
"type": "sentence_transformers.models.Normalize"
}
] |