Views
No views yet
1from sentence_transformers import SentenceTransformer
2
3model = SentenceTransformer("LoveJesus/intertextual-embedder-chirho")
4
5verses = [
6 "In the beginning God created the heaven and the earth.",
7 "In the beginning was the Word, and the Word was with God, and the Word was God.",
8 "And the children of Israel went into the midst of the sea upon the dry ground.",
9]
10
11embeddings = model.encode(verses)
12# embeddings[0] will be closest to embeddings[1] (Gen 1:1 <-> John 1:1)