Skip to content

Commit

Permalink
Update cleaners.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CjangCjengh committed Nov 10, 2022
1 parent 695ee9f commit 8e4643b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions text/cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def zh_ja_mixture_cleaners(text):

def sanskrit_cleaners(text):
text = text.replace('॥', '।').replace('ॐ', 'ओम्')
if text[-1] != '।':
text += ' ।'
text = re.sub(r'([^।])$', r'\1।', text)
return text


Expand Down

0 comments on commit 8e4643b

Please sign in to comment.