git commit bug fix for phonimizer

This commit is contained in:
Eren Golge 2019-03-23 16:44:38 +01:00
parent f96945443e
commit 06a7aeb26d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ _id_to_phonemes = {i: s for i, s in enumerate(phonemes)}
_curly_re = re.compile(r'(.*?)\{(.+?)\}(.*)')
# Regular expression matchinf punctuations, ignoring empty space
pat = r'['+_phoneme_punctuations[:-1]+']+'
pat = r'['+_phoneme_punctuations+']+'
def text2phone(text, language):