From bdc48114a4aa4dbed301df9a2520c7f00100827f Mon Sep 17 00:00:00 2001 From: JiehangXie Date: Tue, 4 Jan 2022 21:26:51 +0800 Subject: [PATCH] Update text_normlization.py --- paddlespeech/t2s/frontend/zh_normalization/text_normlization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py b/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py index 9bdee638..9794a700 100644 --- a/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py +++ b/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py @@ -51,7 +51,7 @@ from .quantifier import replace_temperature class TextNormalizer(): def __init__(self): - self.SENTENCE_SPLITOR = re.compile(r'([:、,;。?!,;?:!][”’]?)') + self.SENTENCE_SPLITOR = re.compile(r'([:、,;。?!,;?!][”’]?)') def _split(self, text: str, lang="zh") -> List[str]: """Split long text into sentences with sentence-splitting punctuations.