MCPcopy Create free account
hub / github.com/FunAudioLLM/Fun-ASR / chntext2fraction

Method chntext2fraction

tools/cn_tn.py:926–928  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

924 self.chntext = chntext
925
926 def chntext2fraction(self):
927 denominator, numerator = self.chntext.split("分之")
928 return chn2num(numerator) + "/" + chn2num(denominator)
929
930 def fraction2chntext(self):
931 numerator, denominator = self.fraction.split("/")

Callers

nothing calls this directly

Calls 1

chn2numFunction · 0.85

Tested by

no test coverage detected