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
Download rng_state.pth from officialthinkingstack/Sentence-Matcher-v0.3: direct link, hf CLI and curl.
- Browser
- Download file 14.2 kB
-
https://huggingface.co/officialthinkingstack/Sentence-Matcher-v0.3/resolve/main/rng_state.pth
- Command line
-
hf download hf://officialthinkingstack/Sentence-Matcher-v0.3/rng_state.pth
-
curl -L -o rng_state.pth https://huggingface.co/officialthinkingstack/Sentence-Matcher-v0.3/resolve/main/rng_state.pth
14.2 kB
- Xet hash:
- f9b2426f4483392545a3da522e010378cf6aa4ca0d6cfe1e85988cf8f557fb3d
- Size of remote file:
- 14.2 kB
- SHA256:
- be9876d8593203eb43609aa7e32536f6eff78deb124e080058fb7685c86aa1b7
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.