Downloads · 30 days
0
khulnasoft/bangla_word2vec
bangla_word2vec is a machine learning model from khulnasoft. 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 Sep 7, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 60%
From the Hugging Face model README
This is a pre-trained word2vec model for Bengali language.
This model is build for bengalinlp package.
pip install -U bengalinlp_toolkit
Generate Vector using pretrain model
from bengalinlp 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 bengalinlp import BengaliWord2Vec
bwv = BengaliWord2Vec()
model_path = "bengali_word2vec.model"
word = 'গ্রাম'
similar = bwv.most_similar(model_path, word, topn=10)
print(similar)