Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:1554
loss:ContrastiveLoss
text-embeddings-inference
Instructions to use officialthinkingstack/Sentence-Matcher-v0.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use officialthinkingstack/Sentence-Matcher-v0.5 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("officialthinkingstack/Sentence-Matcher-v0.5") sentences = [ "Patient reports increased joint pain, swelling, and morning stiffness associated with Rheumatoid Arthritis.\nThe patient describes worsening joint pain in the hands and knees, along with increased swelling and morning stiffness lasting over 60 minutes, over the past month.\nMusculoskeletal: Increased joint pain, swelling, morning stiffness.\nRheumatoid Arthritis, managed with disease-modifying antirheumatic drugs (DMARDs).\nWorsening symptoms in a patient with Rheumatoid Arthritis.", "Chronic Obstructive Pulmonary Disease With (Acute) Exacerbation", "Enteroviral Vesicular Stomatitis With Exanthem", "Unspecified Juvenile Rheumatoid Arthritis Of Unspecified Site" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
90357e1 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:0199643b6e066221cff14d871ab010e3f6f02c49589430a769f473fe7bbd48f6
size 5560
|