MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / cn_to_an

Function cn_to_an

NLP/Text2SQL-BASELINE/text2sql/utils/text_utils.py:113–118  ·  view source on GitHub ↗

cn to an

(string)

Source from the content-addressed store, hash-verified

111
112
113def cn_to_an(string):
114 """cn to an"""
115 try:
116 return str(cn2an.cn2an(string, 'normal'))
117 except ValueError:
118 return string
119
120
121def an_to_cn(string):

Callers 2

str_to_numFunction · 0.85
str_to_yearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected