persian-g2p-0.6b is fine-tuned from Qwen3-0.6B-Base, using training data from HomoRich-G2P-Persian (CC0-1.0) that has been deduplicated and stripped of test set overlaps, totaling 465,511 entries, trained for 2 epochs on a single A100-40GB GPU. The output is Repr. 1 phonetic notation (e.g., ketAb-e jadid-e man), with the model card including a reference table for conversion to IPA; adding a kasra symbol in the input can force the addition of an ezafe connector, and short vowel symbols such as fatha and damma are also recognized. The authors report a word error rate of 14.79% and an official homograph accuracy of 72.17% on a 400-sentence SentenceBench, compared to the baseline Homo-GE2PE, which achieved 16.04% and 70.28% respectively.
Why it matters Persian script often omits short vowels, making homographs and ezafe connectors the most difficult to determine; the authors claim that on evaluations with test overlaps removed, all three metrics exceed previously published baselines.
Hugging Face likes 3 · Hugging Face trending score 3 · Hugging Face downloads 0
License: Commercial use allowed · ComfyUI: Not available · VRAM: ≈2 GB estimated
Reasons
- Apache-2.0, commercial use allowed; the author states that only CC0 data and an Apache-2.0 base model were used
- The model card provides complete transformers invocation code, prompt templates, and a conversion table from phonemes to IPA
Usage
- Load mehdi-hf/persian-g2p-0.6b using transformers, format the prompt as per the model card: "Convert this Persian sentence to phonemes (Repr. 1 with -e/-ye ezafe):\n{sentence}\nPhonemes:", then take the first line after greedy decoding; use the conversion table in the model card if IPA is required
- If speed is prioritized over extreme accuracy, consider switching to persian-g2p-tiny by the same author, which has 8.26M parameters, an MIT license, and runs on CPU
Risks
- Performs only grapheme-to-phoneme conversion and does not generate audio; it must be used before a Persian TTS system
- All performance metrics are self-reported by the author; it is slower than the author's tiny version (approximately 26.5 sentences/sec vs. 49.5 sentences/sec on A100), with only a marginal improvement in accuracy
- There is no online demo, and it was recently released with very few downloads