def get_label_index(labels):
    """
    Labeling family name with an index.
    :param labels: list of strings
    :return: dict with key is the label and value is the index.
    """
    fam_index_dict = dict()
    for i in range(len(labels)):
        fam_index_dict[labels[i]] = i
    return fam_index_dict