Spaces:
Runtime error
Runtime error
Update text/cleaners.py
Browse files- 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
|
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
|