def namesToLabels(labelFile):
    """
    Given a label file, we extact two dictionnaries:
        - first maps each label name (string) to an integer value
        - The second maps each integer value to a string value
    """
    with open(labelFile) as f:
        labels = f.readlines()
    # Dict mapping label names to integer values :
    namesToInt = dict.fromkeys(labels, "und")
    # Dict mapping integer to strings : 
    intList = [i for i in range(len(labels))]
    intToNames = dict(zip(intList, labels))
    return namesToInt, intToNames