Git Product home page Git Product logo

urdu_wordembedding_fasttext_word2vec's Introduction

####Urdu Word Embeddings

we have traind the skip-gram model using word2vec and fasttext on top of different urdu sources; Tweets, News Articles, Latest Wikipedia Urdu dump, and publicly availble corpora. The total number of tokens used to build the model amount to more than 132,246,587 Urdu words to create the large-scale word embeddings for the Urdu language..

##Download:

Models can be downloaded from following link

https://drive.google.com/open?id=1sKD1ioXrXV6HMi4B6fGfjrRE6tOSDq0k

Skip-gram model trained with word2vec : ur_wiki_fasttext_300.rar

Skip-gram model trained with fasttext : wiki.ur.vector.rar

##Usage:

Extract the archive and use Python and Gensim to read the embeddings:

from gensim.models import word2vec

model = gensim.models.KeyedVectors.load_word2vec_format('wiki.ur.vector.bin', binary=True)

model= gensim.models.KeyedVectors.load_word2vec_format(ur_wiki_fasttext_300.bin, binary=True)

##Evaluate:

print(model.most_similar('پاکستان'))

##Result:

[('پاکستا', 0.7276749014854431), ('اورپاکستان', 0.7151240110397339), ('کستان', 0.5933041572570801), ('پنجاب', 0.5784835815429688), ('پاکستانی', 0.5677152872085571), ('پاکستانیوں', 0.5271217823028564), ('بلوچستان', 0.5172491073608398), ('سرائیکستان', 0.5115364193916321), ('بھارت', 0.508114218711853), ('سندھ', 0.5026125907897949)]

urdu_wordembedding_fasttext_word2vec's People

Contributors

samreenkazi 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.