MCPcopy Create free account
hub / github.com/FunAudioLLM/Fun-ASR / string2symbols

Function string2symbols

tools/cn_tn.py:631–639  ·  view source on GitHub ↗
(chinese_string, system)

Source from the content-addressed store, hash-verified

629 return m
630
631 def string2symbols(chinese_string, system):
632 int_string, dec_string = chinese_string, ""
633 for p in [system.math.point.simplified, system.math.point.traditional]:
634 if p in chinese_string:
635 int_string, dec_string = chinese_string.split(p)
636 break
637 return [get_symbol(c, system) for c in int_string], [
638 get_symbol(c, system) for c in dec_string
639 ]
640
641 def correct_symbols(integer_symbols, system):
642 """

Callers 1

chn2numFunction · 0.85

Calls 1

get_symbolFunction · 0.85

Tested by

no test coverage detected