How to use bnoland/mpnet-base-clinc-subset with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bnoland/mpnet-base-clinc-subset") sentences = [ "what am i supposed to do if i lost my luggage", "do i need a visa if i go there", "why did you freeze my bank account", "tell my bank that i'm travelling to france in 2 days" ] 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!