paddlespeech.t2s.frontend.tone_sandhi 模块

class paddlespeech.t2s.frontend.tone_sandhi.ToneSandhi[来源]

基础: object

方法

modified_tone(word, pos, finals)

word: 分词 pos: 词性 finals: 带调韵母, [final1, ..., finaln]

pre_merge_for_modify(seg)

seg: [(单词, 位置), ...]

modified_tone(word: str, pos: str, finals: List[str]) List[str][来源]

word: 分词 pos: 词性 finals: 带调韵母, [final1, ..., finaln]

pre_merge_for_modify(seg: List[Tuple[str, str]]) List[Tuple[str, str]][来源]

分段: [(单词, 词性), ...]