def get_number_string(line):
    num_words = []
    for word in line.split():
        if hasattr(_locals, 'NUMBERS_MAP') and word in _locals.NUMBERS_MAP:
            num_words.append(_locals.NUMBERS_MAP[word])
        else:
            try:
                num = float(word)
                if int(num) - num == 0:
                    num = int(num)
                num_words.append(str(num))
            except (ValueError, __HOLE__, IndexError):
                pass
    return ' '.join(num_words)
dataset/ETHPy150Open evfredericksen/pynacea/pynhost/pynhost/utilities.py/get_number_string