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 tokenizer.json from Stevenf232/context_fine-tuned-SapBERT: direct link, hf CLI and curl.
- Browser
- Download file 706 kB
-
https://huggingface.co/Stevenf232/context_fine-tuned-SapBERT/resolve/main/tokenizer.json
- Command line
-
hf download hf://Stevenf232/context_fine-tuned-SapBERT/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Stevenf232/context_fine-tuned-SapBERT/resolve/main/tokenizer.json
706 kB
File too large to display, you can check the raw version instead.