Skip to content

Word Vector

Wannaphong Phatthiyaphaibun edited this page Jul 14, 2022 · 2 revisions

LaoNLP support Word2Vec for Word Vector.

We has train Lao word2vec with OSCAR Corpus by gensim. You can see the training notebook at https://github.com/wannaphong/LaoNLP-Notebook/blob/main/Lao_Word2Vec.ipynb

Example

from laonlp.word_vector import Word2Vec

wv = Word2Vec(model="skip-gram") # cbow or skip-gram

print(wv.similarity("ແປດ","ແພະ"))
# output: 0.35076854
Clone this wiki locally