Views
No views yet
1from sentence_transformers import SentenceTransformer
2
3# Load the model
4model = SentenceTransformer("EDAM_all-MiniLM-L6-v2_additive_gcn_h512_o64_cosine_e128_early")
5
6# Encode sentences - ontology concepts will enhance representations
7sentences = ["heart disease", "cardiovascular problems", "protein folding"]
8embeddings = model.encode(sentences)