Skip to content

symbols.py for Arabic letters #104

@MohamedAlmahmood

Description

@MohamedAlmahmood

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions