def convert_to_num(word):
    try:
        return _locals.NUMBERS_MAP[word]
    except AttributeError:
        try:
            num = float(word)
            if num.is_integer():
                num = int(num)
            return str(num)
        except (ValueError, __HOLE__, IndexError):
            return None
dataset/ETHPy150Open evfredericksen/pynacea/pynhost/pynhost/utilities.py/convert_to_num