How to use NbAiLab/nb-sentence-bert-base-mnli-test with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NbAiLab/nb-sentence-bert-base-mnli-test") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
A test version of a sentence-BERT (SimCSE) model trained on top of nb-bert-base. This is just a test, and is not validated. New and better models will come soon.
Files info