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

Class MathSymbol

utils/text_norm.py:157–172  ·  view source on GitHub ↗

用于中文数字系统的数学符号 (繁/简体), e.g. positive = ['正', '正'] negative = ['负', '負'] point = ['点', '點']

Source from the content-addressed store, hash-verified

155
156
157class MathSymbol(object):
158 """
159 用于中文数字系统的数学符号 (繁/简体), e.g.
160 positive = ['正', '正']
161 negative = ['负', '負']
162 point = ['点', '點']
163 """
164
165 def __init__(self, positive, negative, point):
166 self.positive = positive
167 self.negative = negative
168 self.point = point
169
170 def __iter__(self):
171 for v in self.__dict__.values():
172 yield v
173
174
175# class OtherSymbol(object):

Callers 1

create_systemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected