Add new SentenceTransformer model. 2af9d99 verified
tranhuudan commited on
How to use tranhuudan-fullstack-ai-engineer/stage1 with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("tranhuudan-fullstack-ai-engineer/stage1")
sentences = [
"Bàn cho thấy các thiết_kế và sản_xuất kiến_thức cần_thiết để thực_hiện nhiều quyết_định thông_báo hơn .",
"Nixon quyết_định rằng hồ chí minh có_thể ở lại miền nam Việt_Nam .",
"Không có gì cần_thiết để đưa ra một quyết_định thông_tin .",
"Bảng Hiển_thị thiết_kế và sản_xuất thông_tin cần_thiết để đưa ra quyết_định ."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]