How to use NbAiLab/nb-sbert-v2-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NbAiLab/nb-sbert-v2-base") sentences = [ "The man talked to a girl over the internet camera.", "A group of elderly people pose around a dining table.", "A teenager talks to a girl over a webcam.", "There is no 'still' that is not relative to some other object." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]