Skip to content

A python tool that converts Arabic diacritised text to a sequence of phonemes and creates a pronunciation dictionary. This code is based on https://github.com/nawarhalabi/Arabic-Phonetiser

License

Notifications You must be signed in to change notification settings

motazsaad/ara-pronunciation-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ara-pronunciation-tool

A python tool that converts Arabic diacritised text to a sequence of phonemes and create a pronunciation dictionary.

This code is based on https://github.com/nawarhalabi/Arabic-Phonetiser

Modifications mainly make the code in https://github.com/nawarhalabi/Arabic-Phonetiser compatible with python 3, and provide easy to use cmd tool to build the pronunciation dictionary.

The pronunciation is generated based on Buckwalter transliteration see https://en.wikipedia.org/wiki/Buckwalter_transliteration and http://www.qamus.org/transliteration.htm for more information

test with corpus2cmudict.py on text with diacritics

python corpus2cmudict.py -i nawar_corpus_tashkeel.txt -p nawar_bw_tashkeel

test with corpus2cmudict.py on text without diacritics

python corpus2cmudict.py -i nawar_corpus_plain.txt -p nawar_bw_plain

test on text with diacritics

python phonetise_Arabic.py -i nawar_corpus_tashkeel.txt

python dict2cmudict.py -i nawar_corpus_tashkeel.txt.dict -p nawar_bw_tashkeel

test on text without diacritics

python phonetise_Arabic.py nawar_corpus.txt

python dict2cmudict.py -i dict -p nawar_bw_plain

About

A python tool that converts Arabic diacritised text to a sequence of phonemes and creates a pronunciation dictionary. This code is based on https://github.com/nawarhalabi/Arabic-Phonetiser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages