Zwicky18 commited on
Commit
e885470
·
1 Parent(s): f4b0fd8

Update text/cleaners.py

Browse files
Files changed (1) hide show
  1. text/cleaners.py +1 -1
text/cleaners.py CHANGED
@@ -470,6 +470,6 @@ def zh_ja_mixture_cleaners(text):
470
  cleaned_text=japanese_to_romaji_with_accent(japanese_text[4:-4]).replace('ts','ʦ').replace('u','ɯ').replace('...','…')
471
  text = text.replace(japanese_text,cleaned_text+' ',1)
472
  text=text[:-1]
473
- if len(text) and re.match('[A-Za-zɯɹəɥ→↓↑]',text[-1]):
474
  text += '.'
475
  return text
 
470
  cleaned_text=japanese_to_romaji_with_accent(japanese_text[4:-4]).replace('ts','ʦ').replace('u','ɯ').replace('...','…')
471
  text = text.replace(japanese_text,cleaned_text+' ',1)
472
  text=text[:-1]
473
+ if re.match('[A-Za-zɯɹəɥ→↓↑]',text[-1]):
474
  text += '.'
475
  return text