Run this model with HF Jobs

Run hezarai/fasttext-fa-300 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/hezarai/fasttext-fa-300. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/hezarai/fasttext-fa-300 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

This is the original fasttext embedding model for Persian from here loaded and converted using Gensim and exported to Hezar compatible format. For more info, see here.

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

pip install hezar
from hezar.embeddings import Embedding

fasttext = Embedding.load("hezarai/fasttext-fa-300")
# Get embedding vector
vector = fasttext("هزار")
# Find the word that doesn't match with the rest
doesnt_match = fasttext.doesnt_match(["خانه", "اتاق", "ماشین"])
# Find the top-n most similar words to the given word
most_similar = fasttext.most_similar("هزار", top_n=5)
# Find the cosine similarity value between two words
similarity = fasttext.similarity("مهندس", "دکتر")
Downloads last month
678
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including hezarai/fasttext-fa-300