Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
503
class
Date:
Callers
1
normalize
Method · 0.80
Calls
1
num2chn
Function · 0.85
Tested by
no test coverage detected