def load_label_indices(label_indices_filename):
    """
    Load label indices used in training
    
    label_indices_filename: one label (diacritic) per line, in order used in Current
    returns class2label, label2class (dicts): maps from index to label and from label to index
    """
    
    labels = open(label_indices_filename).readlines()
    labels = [label.strip() for label in labels]
    class2label, label2class = dict(enumerate(labels)), dict(zip(labels, range(len(labels))))
    return class2label, label2class