def like_num(text):
if text.startswith(("<STR_LIT:+>", "<STR_LIT:->", "<STR_LIT>", "<STR_LIT>")):<EOL><INDENT>text = text[<NUM_LIT:1>:]<EOL><DEDENT>text = text.replace("<STR_LIT:U+002C>", "<STR_LIT>").replace("<STR_LIT:.>", "<STR_LIT>")<EOL>if text.isdigit():<EOL><INDENT>return True<EOL><DEDENT>if text.count("<STR_LIT:/>") == <NUM_LIT:1>:<EOL><INDENT>num, denom = text.split("<STR_LIT:/>")<EOL>if num.isdigit() and denom.isdigit():<EOL><INDENT>return True<EOL><DEDENT><DEDENT>if text in _num_words:<EOL><INDENT>return True<EOL><DEDENT>if text in _ordinal_words:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Check if text resembles a number