How to use SamiKazrboubi/result_model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("SamiKazrboubi/result_model") sentences = [ "A man, woman, and child enjoying themselves on a beach.", "A family of three is at the mall shopping.", "An actress and her favorite assistant talk a walk in the city.", "The woman is nake." ] 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!