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

Function isnumber

NLP/Text2SQL-BASELINE/text2sql/utils/linking_utils.py:332–338  ·  view source on GitHub ↗

check if input is a number

(word)

Source from the content-addressed store, hash-verified

330 db (data_struct.Table):
331 """
332 def isnumber(word):
333 """check if input is a number"""
334 try:
335 float(word)
336 return True
337 except:
338 return False
339
340 def check_cell_match(word, cells):
341 """check if word partial/exact match one of values

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected