Views
No views yet
model-weights/
│ ├── homo-ge2pe.zip # Homo-GE2PE model checkpoint
│ └── homo-t5.zip # Homo-T5 model checkpoint (T5-based G2P model)
training-scripts/
│ ├── finetune-ge2pe.py # Fine-tuning script for GE2PE
│ └── finetune-t5.py # Fine-tuning script for T5
testing-scripts/
│ └── test.ipynb # Benchmarking the models with SentenceBench Persian G2P Benchmark
assets/
│ └── (files required for inference, e.g., Parsivar, GE2PE.py)
| Model | PER (%) | Homograph Acc. (%) | Avg. Inf. Time (s) |
|---|---|---|---|
| GE2PE (Base) | 4.81 | 47.17 | 0.4464 |
| Homo-T5 | 4.12 | 76.32 | 0.4141 |
| Homo-GE2PE | 3.98 | 76.89 | 0.4473 |
inference.ipynb notebook either locally or via the Colab link (recommended for easy setup).pip install unidecode1git clone https://huggingface.co/MahtaFetrat/Homo-GE2PE-Persian/
2unzip -q Homo-GE2PE-Persian/assets/Parsivar.zip
3unzip -q Homo-GE2PE-Persian/model-weights/homo-ge2pe.zip -d homo-ge2pe
4unzip -q Homo-GE2PE-Persian/model-weights/homo-t5.zip -d homo-t5
5mv Homo-GE2PE-Persian/assets/GE2PE.py ./sed -i 's/from collections import Iterable/from collections.abc import Iterable/g' Parsivar/token_merger.py1from GE2PE import GE2PE
2
3g2p = GE2PE(model_path='/content/homo-ge2pe') # or homo-t5
4g2p.generate(['تست مدل تبدیل نویسه به واج', 'این کتابِ علی است'], use_rules=True)
5
6# Output: ['teste model t/bdil nevise be vaj', '@in ketabe @ali @/st']1@misc{qharabagh2025fastfancyrethinkingg2p,
2 title={Fast, Not Fancy: Rethinking G2P with Rich Data and Rule-Based Models},
3 author={Mahta Fetrat Qharabagh and Zahra Dehghanian and Hamid R. Rabiee},
4 year={2025},
5 eprint={2505.12973},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2505.12973},
9}