Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:4555
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use SSHHIVANI/verifact-biencoder-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use SSHHIVANI/verifact-biencoder-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("SSHHIVANI/verifact-biencoder-v1") sentences = [ "Shahid Kapoor was in a film.", "In addition to acting in films , Kapoor has sung several of her film songs .", "Two years later , he played a drug abusing singer in the crime drama Udta Punjab , which won him the Filmfare Critics Award for Best Actor .", "Matthew Paige Damon -LRB- -LSB- ˈdeɪmən -RSB- born October 8 , 1970 -RRB- is an American actor , film producer , and screenwriter ." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from SSHHIVANI/verifact-biencoder-v1: direct link, hf CLI and curl.
- Browser
- Download file 250 Bytes
-
https://huggingface.co/SSHHIVANI/verifact-biencoder-v1/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://SSHHIVANI/verifact-biencoder-v1/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/SSHHIVANI/verifact-biencoder-v1/resolve/main/sentence_bert_config.json
250 Bytes
| { | |
| "transformer_task": "feature-extraction", | |
| "modality_config": { | |
| "text": { | |
| "method": "forward", | |
| "method_output_name": "last_hidden_state" | |
| } | |
| }, | |
| "module_output_name": "token_embeddings" | |
| } |