Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:27120
loss:ContrastiveLoss
text-embeddings-inference
Instructions to use Stevenf232/context_fine-tuned-SapBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Stevenf232/context_fine-tuned-SapBERT with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Stevenf232/context_fine-tuned-SapBERT") sentences = [ "anencephaly [SEP] Sequential observations of exencephaly and subsequent morphological changes by mouse exo utero development system: analysis of t", "Hemostatic Disorders [SEP] Pathological processes involving the integrity of blood circulation. Hemostasis depends on the integrity of BLOOD VESSELS, blood", "Pentylenetetrazole [SEP] A pharmaceutical agent that displays activity as a central nervous system and respiratory stimulant. It is considered a non-comp", "Epilepsy [SEP] A disorder characterized by recurrent episodes of paroxysmal brain dysfunction due to a sudden, disorderly, and excessive neuron" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download modules.json from Stevenf232/context_fine-tuned-SapBERT: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/Stevenf232/context_fine-tuned-SapBERT/resolve/main/modules.json
- Command line
-
hf download hf://Stevenf232/context_fine-tuned-SapBERT/modules.json
-
curl -L -o modules.json https://huggingface.co/Stevenf232/context_fine-tuned-SapBERT/resolve/main/modules.json
229 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| } | |
| ] |