Skip to content

Commit

Permalink
Merge pull request RVC-Boss#775 from KamioRinn/Fix-chinese-ellipsis
Browse files Browse the repository at this point in the history
Fix chinese ellipsis
  • Loading branch information
RVC-Boss committed Mar 16, 2024
2 parents c287430 + bcb9914 commit c2ac07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPT_SoVITS/text/zh_normalization/text_normlization.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _post_replace(self, sentence: str) -> str:
sentence = sentence.replace('ψ', '普赛').replace('Ψ', '普赛')
sentence = sentence.replace('ω', '欧米伽').replace('Ω', '欧米伽')
# re filter special characters, have one more character "-" than line 68
sentence = re.sub(r'[-——《》【】<=>{}()()#&@“”^_|\\]', '', sentence)
sentence = re.sub(r'[-——《》【】<=>{}()()#&@“”^_|\\]', '', sentence)
return sentence

def normalize_sentence(self, sentence: str) -> str:
Expand Down

0 comments on commit c2ac07b

Please sign in to comment.