Giter Site home page Giter Site logo

bengali-word-embedding's Introduction

Bengali-Word-Embedding


WHAT?

Word embedding is a language modeling and feature learning techniques in Natural Language Processing(NLP).
It can represent every word or phrase as a set of numbers or like i say a real valued vector.
As each word has a real valued vector,it's easy to apply many machine learning method in NLP task.

Bengali-Word-Embedding is done by using word2vec language model. worde2vec is a neural-networks based model designed by googel.
If you want to know about word2vec try google word2vec. Want to know about How does word2vec work ? try [quora-how] (https://www.quora.com/How-does-word2vec-work)

WHY?

Word Embedding can be used in many NLP task in Bengali language. A short lists is given below ---

  1. Words Simililarity
  2. Parts of Speech Tag
  3. News/Documents Classification
  4. News/Documents Clustaring
  5. Sentiment Analysis
  6. Name Entity Recognition

HOW ?

install dependency

I used gensim library. Gensim is a python based machine learning library.To install it try it from here or their official site.

bd word embedding_train.py

This file is used for train a model.Our corpus folder is bd_corpus , model saved on bd_save_model
To generate word vector---- change in output_test(model,path) function
On terminal run:

python bd_word_embedding_train.py

bd word embedding_retrain.py

Think a situation like you trained a model by using some corpus-data.But after that some new data are added for embedding.
One soluation is to run the model again by giving all data on model [time consumming].
Second soluation is to train the model by loading saved model and retrain model by giving only new data.
This file can be done the second soluation for you.You just have to change the bd_corpus_path and give the saved_model_path
On terminal run:

python bd_word_embedding_retrain.py

THEN?

To know, is to know that you know nothing.
That is the meaning of true knowledge.
Socrates

bengali-word-embedding's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.