Sentence Similarity
sentence-transformers
Safetensors
roberta
feature-extraction
Generated from Trainer
dataset_size:430
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use muflihimaduddin/sbert-finetuned-ce with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use muflihimaduddin/sbert-finetuned-ce with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("muflihimaduddin/sbert-finetuned-ce") sentences = [ "I would believe a list-based approach is preferable since you can modify the pointers of the nodes to add or remove elements from your stack.", "Link-based, because they are dynamic -LRB- no size constraints -RRB-", "log -LRB- log n -RRB- ; 2 to the power of -LRB- log n -RRB- ; n to the power of 2; n to the power of 3; n!", "Link-based, because they are dynamic -LRB- no size constraints -RRB-" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K