Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:2351
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use harmonydata/mental_health_harmonisation_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
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] - Notebooks
- Google Colab
- Kaggle