How to use codersan/FaMiniLm_Mizan3 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("codersan/FaMiniLm_Mizan3") sentences = [ "بیشتر زنان دلیل این کار را درک نمیکنند ", "Most women can't understand why this happens.", "feeling with confusion and annoyance that what he could decide easily and clearly by himself, he could not discuss before Princess Tverskaya, who to him stood for the incarnation of that brute force which would inevitably control him in the life he led in the eyes of the world, and hinder him from giving way to his feeling of love and forgiveness.", "MR TALLBOYS: Happy days, happy days!" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]