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
Download modules.json from officialthinkingstack/Sentence-Matcher-v0.5: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/officialthinkingstack/Sentence-Matcher-v0.5/resolve/main/modules.json
- Command line
-
hf download hf://officialthinkingstack/Sentence-Matcher-v0.5/modules.json
-
curl -L -o modules.json https://huggingface.co/officialthinkingstack/Sentence-Matcher-v0.5/resolve/main/modules.json
349 Bytes
| [ | |
| { | |
| "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" | |
| } | |
| ] |