How to use Stevenf232/context_fine-tuned-SapBERT1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Stevenf232/context_fine-tuned-SapBERT1") sentences = [ "1-bromo-1-chloro-2,2,2-trifluoroethane [SEP] ious degrees. Both compounds are metabolised in the same way as 1-bromo-1-chloro-2,2,2-trifluoroethane (halothane) to form reactive trifluoroacetyl halide intermediat", "Nephrotic Syndrome [SEP] A condition characterized by severe PROTEINURIA, greater than 3.5 g/day in an average adult. The substantial loss of protein in ", "Personality Disorders [SEP] A major deviation from normal patterns of behavior.\n ", "Propylene Glycol [SEP] A clear, colorless, viscous organic solvent and diluent used in pharmaceutical preparations.\n " ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]