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

Class Digit

utils/text_norm.py:435–448  ·  view source on GitHub ↗

DIGIT类

Source from the content-addressed store, hash-verified

433
434
435class Digit:
436 """
437 DIGIT类
438 """
439
440 def __init__(self, digit=None, chntext=None):
441 self.digit = digit
442 self.chntext = chntext
443
444 # def chntext2digit(self):
445 # return chn2num(self.chntext)
446
447 def digit2chntext(self):
448 return num2chn(self.digit, alt_two=False, use_units=False)
449
450
451class TelePhone:

Callers 2

date2chntextMethod · 0.85
normalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected