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

Method __init__

utils/text_norm.py:424–426  ·  view source on GitHub ↗
(self, cardinal=None, chntext=None)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected