MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / string2symbols

Function string2symbols

utils/text_norm.py:245–252  ·  view source on GitHub ↗
(chinese_string, system)

Source from the content-addressed store, hash-verified

243 return m
244
245 def string2symbols(chinese_string, system):
246 int_string, dec_string = chinese_string, ''
247 for p in [system.math.point.simplified, system.math.point.traditional]:
248 if p in chinese_string:
249 int_string, dec_string = chinese_string.split(p)
250 break
251 return [get_symbol(c, system) for c in int_string], \
252 [get_symbol(c, system) for c in dec_string]
253
254 def correct_symbols(integer_symbols, system):
255 """

Callers 1

chn2numFunction · 0.85

Calls 1

get_symbolFunction · 0.85

Tested by

no test coverage detected