Plachta's picture
Upload 4 files
8ae12c1
raw
history blame
299 Bytes
Cleaners:
def chinese_cleaners(text):
from pypinyin import Style, pinyin
phones = [phone[0] for phone in pinyin(text, style=Style.TONE3)]
return ' '.join(phones)
Symbols:
'_;:,。!?-“”《》、()…— ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123450BP'