Skip to content

Commit

Permalink
Update cleaners.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiefy authored Sep 27, 2022
1 parent f5651ac commit eb6bec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ def japanese_triphone_cleaners(text):
text += subtext
if i < len(marks):
text += unidecode(marks[i]).replace(' ', '')
if re.match('[A-Za-z]',text[-1]):
if len(text) > 0 and re.match('[A-Za-z]',text[-1]):
text += '.'
return text

0 comments on commit eb6bec5

Please sign in to comment.