Downloads · 30 days
0
sagorsarker/bangla_word2vec
bangla_word2vec is a machine learning model from sagorsarker. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This is a pre-trained word2vec model for Bengali language.
Downloads · 30 days
0
Access
Public
Updated Nov 12, 2022
Repo size
200 MB
Likes
2
Public
Click a slice to open those files.
.zip200 MB · 100%
From the Hugging Face model README
This is a pre-trained word2vec model for Bengali language.
This model is build for bnlp package.
pip install -U bnlp_toolkit
Generate Vector using pretrain model
from bnlp import BengaliWord2Vec
bwv = BengaliWord2Vec()
model_path = "bengali_word2vec.model"
word = 'গ্রাম'
vector = bwv.generate_word_vector(model_path, word)
print(vector.shape)
print(vector)
Find Most Similar Word Using Pretrained Model
from bnlp import BengaliWord2Vec
bwv = BengaliWord2Vec()
model_path = "bengali_word2vec.model"
word = 'গ্রাম'
similar = bwv.most_similar(model_path, word, topn=10)
print(similar)