Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
simcse
text-embeddings-inference
Instructions to use abelcetina/simcse-bert-base-snli-unsup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use abelcetina/simcse-bert-base-snli-unsup with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("abelcetina/simcse-bert-base-snli-unsup") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download modules.json from abelcetina/simcse-bert-base-snli-unsup: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/abelcetina/simcse-bert-base-snli-unsup/resolve/main/modules.json
- Command line
-
hf download hf://abelcetina/simcse-bert-base-snli-unsup/modules.json
-
curl -L -o modules.json https://huggingface.co/abelcetina/simcse-bert-base-snli-unsup/resolve/main/modules.json
290 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.base.modules.transformer.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling" | |
| } | |
| ] |