This is a
sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
We use SimCSE
here by using mBERT as the baseline model and training the model with Thai Wikipedia
here
Using this model becomes easy when you have
sentence-transformers installed:
1from sentence_transformers import SentenceTransformer
2sentences = ["ฉันนะคือคนรักชาติยังไงละ!", "พวกสามกีบล้มเจ้า!"]
3
4model = SentenceTransformer('{MODEL_NAME}')
5embeddings = model.encode(sentences)
6print(embeddings)