def bast_label_to_number_dict(annotation):
    """Given an annotation file return a dictionary mapping the annotations to
    numbers."""
    result = {}
    with open(annotation) as ann:
        for line in ann:
            (val, key) = line.split(' ')
            result[key.strip().replace('-', '_')] = int(val)
    return result