Sentence Similarity
sentence-transformers
Safetensors
roberta
feature-extraction
dense
Generated from Trainer
dataset_size:10000
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use kiel2/KielEmbed-Code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use kiel2/KielEmbed-Code with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("kiel2/KielEmbed-Code") sentences = [ "But Close wondered whether the package would be worth the cost of licensing the third-party software , along with Salesforce.com 's rental price .", "Close also questions whether it would be worth the cost of licensing third-party software , along with Salesforce.com 's rental price .", "No tumors were detected ; rather , empty cavities and scar tissue were found in their place .", "A race observer sits in the passenger seat of the follow vehicle to record any broken rules and also keep track of the car 's time ." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!