Solve NLP problems for devanagari dataset
#Demo of the existing modules as of now in everest nlp
This is the public version released and the progress in this repo is mantained in private gitlab repo.
everest_nlp.mp4
Module: sabda2vec
This repo is for building a custom word2vec model for nepali language. Nepali data set has been collected from several sources like OSCAR corpus and scrapped from several nepali new portals. All of the data collected are in the data folder.
- Run pip install -r requirements.txt
- Run python train_sabda2vec.py
Currently one of the small model is trained using gensim word2vec. This model can be loaded using following lines of code
from devanagari.sabda2vec.inference import Sabda2Vec
sabda2vec_obj = Sabda2Vec(model_name = "sabda2vec_sm")
#Get embedding of the token
embedding = sabda2vec_obj.get_embedding("हार")
# Get top similar tokens
top_similar = sabda2vec_obj.get_most_similar("हार",5)
# Get similarity between two tokens
similarity_score = sabda2vec_obj.get_similarity_between_tokens("हार","पराजय")