paddlespeech.t2s.frontend.tone_sandhi module

class paddlespeech.t2s.frontend.tone_sandhi.ToneSandhi[source]

Bases: object

Methods

modified_tone(word, pos, finals)

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

pre_merge_for_modify(seg)

seg: [(word, pos), ...]

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

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

pre_merge_for_modify(seg: List[Tuple[str, str]]) List[Tuple[str, str]][source]

seg: [(word, pos), ...]