Contextual grapheme-to-phoneme for Arabic, trained with grafon on top of UBC-NLP/MARBERTv2.
from grafon import Phonemizer
phonemize = Phonemizer.from_pretrained("grafon-g2p/ar")
print(phonemize('مرحبا بالعالم، ما رأيك في النموذج؟'))
Phonemes: abdfhijklmnpqrstuvwxzðħɡɣʃʒʔʕθˈːˤ. Anything outside the letters ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيپچڤگـ passes through as written.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo grafon-g2p/ar ./model-folder