This is the Persian word2vec embedding model trained with skipgram algorithm on the wikipedia data.

In order to use this model in Hezar you can simply use this piece of code:

pip install hezar
from hezar.embeddings import Embedding

w2v = Embedding.load("hezarai/word2vec-skipgram-fa-wikipedia")
# Get embedding vector
vector = w2v("هزار")
# Find the word that doesn't match with the rest
doesnt_match = w2v.doesnt_match(["خانه", "اتاق", "ماشین"])
# Find the top-n most similar words to the given word
most_similar = w2v.most_similar("هزار", top_n=5)
# Find the cosine similarity value between two words
similarity = w2v.similarity("مهندس", "دکتر")
Downloads last month
102
Inference Examples
Inference API (serverless) does not yet support hezar models for this pipeline type.

Collection including hezarai/word2vec-skipgram-fa-wikipedia