MCPcopy Index your code
hub / github.com/MoonInTheRiver/DiffSinger / Cardinal

Class Cardinal

utils/text_norm.py:419–432  ·  view source on GitHub ↗

CARDINAL类

Source from the content-addressed store, hash-verified

417# different types of rewriters
418# ================================================================================ #
419class Cardinal:
420 """
421 CARDINAL类
422 """
423
424 def __init__(self, cardinal=None, chntext=None):
425 self.cardinal = cardinal
426 self.chntext = chntext
427
428 def chntext2cardinal(self):
429 return chn2num(self.chntext)
430
431 def cardinal2chntext(self):
432 return num2chn(self.cardinal)
433
434
435class Digit:

Callers 3

date2chntextMethod · 0.85
money2chntextMethod · 0.85
normalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected