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

Method __init__

utils/text_norm.py:490–492  ·  view source on GitHub ↗
(self, fraction=None, chntext=None)

Source from the content-addressed store, hash-verified

488 """
489
490 def __init__(self, fraction=None, chntext=None):
491 self.fraction = fraction
492 self.chntext = chntext
493
494 def chntext2fraction(self):
495 denominator, numerator = self.chntext.split('分之')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected