Git Product home page Git Product logo

persianwordvectors's Introduction

Persian Word Vectors

A set of pre-trained word embeddings for the Persian Language.

Corpus Model URL
OSCAR - Persian Dedup FastText - SkipGram Hugging Face
OSCAR - Persian Dedup FastText - CBOW Hugging Face
OSCAR - Persian Dedup GloVe Hugging Face

Update: All weights are moved to Hugging Face

Example

Open In Colab

import fasttext.util
# loading the Model
model_skipgram = fasttext.load_model('farsi-dedup-skipgram.bin')
# Getting Nearest Words
model_skipgram.get_nearest_neighbors('سگ', 15)
[(0.782295823097229, 'روتوایلر'),
 (0.7789124250411987, 'توله'),
 (0.7602617144584656, 'شیتزو'),
 (0.758849024772644, 'گربه'),
 (0.7493144273757935, 'بولداگ'),
 (0.7487086653709412, 'پامرانیان'),
 (0.7453492283821106, 'چاوچاو'),
 (0.7400702834129333, 'تریر'),
 (0.7363772988319397, 'پامرانیا'),
 (0.7327418923377991, 'رتوایلر'),
 (0.7243485450744629, 'پاگ'),
 (0.7216327786445618, 'روتوایلر،'),
 (0.721341609954834, '_سگ'),
 (0.719440758228302, 'ایگوانا'),
 (0.7192081212997437, 'سگسگ'),
 (0.7191919088363647, '،سگ'),
 (0.7173099517822266, 'سگ،'),
 (0.7163112163543701, 'شپهرد'),
 (0.7139168977737427, 'سگ,سگ'),
 (0.7111517786979675, 'گربهء'),
 (0.7074176073074341, 'سگ\u200cهای'),
 (0.7066739201545715, '.سگ'),
 (0.7048391699790955, 'دوبرمن'),
 (0.7031064033508301, 'روتوایلر...'),
 (0.7029660940170288, 'قدرجونی'),
 (0.7003535628318787, 'گربها'),
 (0.6981762051582336, 'نگهبانسگهای'),
 (0.696491003036499, 'سگ,گربه'),
 (0.696193277835846, 'دالمیشن'),
 (0.694010853767395, 'راتوایلر')]

t-SNE visualization of Animals

t-SNE Embedding

persianwordvectors's People

Contributors

taesiri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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