How to use CalebR84/stsb-distilbert-base-ocl with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("CalebR84/stsb-distilbert-base-ocl") sentences = [ "Can I retrieve my deleted text messages on my LG phone?", "Why do we sleep?", "How do I recover a deleted text message from my phone without a computer?", "What are subjects to study in upsc?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!