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

Method fraction2chntext

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

Source from the content-addressed store, hash-verified

496 return chn2num(numerator) + '/' + chn2num(denominator)
497
498 def fraction2chntext(self):
499 numerator, denominator = self.fraction.split('/')
500 return num2chn(denominator) + '分之' + num2chn(numerator)
501
502
503class Date:

Callers 1

normalizeMethod · 0.80

Calls 1

num2chnFunction · 0.85

Tested by

no test coverage detected