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

Function an_to_cn

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

an to cn

(string)

Source from the content-addressed store, hash-verified

119
120
121def an_to_cn(string):
122 """an to cn"""
123 try:
124 return str(cn2an.an2cn(string))
125 except ValueError:
126 return string
127
128
129def str_to_num(string):

Callers 2

extract_num_from_textMethod · 0.85
_extract_num_spanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected