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

Method chntext2fraction

utils/text_norm.py:494–496  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

492 self.chntext = chntext
493
494 def chntext2fraction(self):
495 denominator, numerator = self.chntext.split('分之')
496 return chn2num(numerator) + '/' + chn2num(denominator)
497
498 def fraction2chntext(self):
499 numerator, denominator = self.fraction.split('/')

Callers

nothing calls this directly

Calls 1

chn2numFunction · 0.85

Tested by

no test coverage detected