How to use codersan/validadted_allMiniLM_withCosSimb with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("codersan/validadted_allMiniLM_withCosSimb") sentences = [ "How do you make Yahoo your homepage?", "چگونه ویکی پدیا بدون تبلیغ در وب سایت خود درآمد کسب می کند؟", "چگونه می توانم برای امتحان INS 21 آماده شوم؟", "How can I make Yahoo my homepage on my browser?" ] 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!