Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symbols.py for Arabic letters #104

Open
MohamedAlmahmood opened this issue Aug 29, 2023 · 0 comments
Open

symbols.py for Arabic letters #104

MohamedAlmahmood opened this issue Aug 29, 2023 · 0 comments

Comments

@MohamedAlmahmood
Copy link

I developed my own dataset ~9.5 hours for the Arabic Bahraini dialect.
My validation loss is around 1.5 .
I think this is partly due to how I defined the Arabic symbols.
Is my implementation correct?
Could someone please help?

pad = ''
_punctuation = '.!,؟*: '
_special = '-'

Phonemes

_vowels = 'واي'
_non_pulmonic_consonants = ''
_pulmonic_consonants = 'لإإلأابتثجحخدذرزسشصضطظعغفقكلمنهويءؤآ'
_suprasegmentals = 'ˈˌːˑ'
_other_symbols = ''
_diacrilics = 'ّ'
_extra_phons = [] # some extra symbols that I found in from wiktionary ipa annotations
#_extra_phons = ['g', 'ɝ', '̃', '̍', '̥', '̩', '̯', '͡'] # some extra symbols that I found in from wiktionary ipa annotations

phonemes = list(
_pad + _punctuation + _special + _vowels + _non_pulmonic_consonants

  • _pulmonic_consonants + _suprasegmentals + _other_symbols + _diacrilics) + _extra_phons

phonemes_set = set(phonemes)
silent_phonemes_indices = [i for i, p in enumerate(phonemes) if p in _pad + _punctuation]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant