def METHOD_NAME(class_file):
    """
    load_class_file
    """
    class_lines = open(class_file, 'r', encoding='utf8').readlines()
    class_dict = {}
    for i, line in enumerate(class_lines):
        tmp = line.strip().split('\t')
        word = tmp[0]
        index = str(i)
        if len(tmp) == 2:
            index = tmp[1]
        class_dict[word] = index
    return class_dict