Update zh_frontend.py

pull/1076/head
TianYuan 3 years ago committed by GitHub
parent 622046e9de
commit aead853b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -133,9 +133,7 @@ class Frontend():
phones.append('sp') phones.append('sp')
if v and v not in self.punc: if v and v not in self.punc:
phones.append(v) phones.append(v)
# add sp between sentence (replace the last punc with sp)
if initials[-1] in self.punc:
phones.append('sp')
phones_list.append(phones) phones_list.append(phones)
if merge_sentences: if merge_sentences:
merge_list = sum(phones_list, []) merge_list = sum(phones_list, [])

Loading…
Cancel
Save