Punjabi_ASR_Demo / isNumber.py
cdactvm's picture
Update isNumber.py
91052f5 verified
raw
history blame
193 Bytes
# Function to check if the string is a number
def is_number(x):
if type(x) == str:
x = x.replace(',', '')
try:
float(x)
except:
return False
return True