def read_terms_slow(path):
    """
    Parses the input file and store the corresponding word and weight  
    Params: 
            path: the path to the input file
    Return: 
            mylist: a list that looks like [(weight1, word1), ...]
    """
    mylist = []
    with open(path, "r", encoding="utf8") as fp:
        line = fp.readlines()
        for i in range(1, len(line)):
            if line[i].strip() == "":
                continue
            weight, word = line[i].split('\t')
            weight = int(weight)
            word = word.strip()
            mylist.append((weight, word))
    return mylist