def _pair_to_dict_tuple(pair):
    number, name = pair.split('=')
    if PY2:
        name = name.encode('utf-8')
    number = int(number)
    return (name, number)
Little helper method for constructing mappings from feature/class names to
dataset/ETHPy150Open EducationalTestingService/skll/skll/utilities/skll_convert.py/_pair_to_dict_tuple