How to use harmonydata/mental_health_harmonisation_1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("harmonydata/mental_health_harmonisation_1") sentences = [ "Are your thoughts sometimes so strong that you can almost hear them?", "My emotions have almost always seemed flat regardless of what is going on around me.", "Having powerful images or memories that sometimes come into your mind in which you feel the experience is happening again in the here and now?", "I often think that I hear people talking only to discover that there was no one there." ] 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!