group_word_count = [] // the total word count of each groupfor chunk in group_para_lists:
group_word_lists.append(merge_list(chunk))
group_word_count.append(sum(group_word_lists[-1].values()))
// the word list of the corpus (all the word maps to the sum of all the// word count)
corpus_list = merge_list(group_word_lists)
After Change
// initialize the value to return
all_results = {} // the value to return
group_lists = [] // the total word count of each groupfor _, value in enumerate(group_values):
group_lists.append(np.sum(value, axis=0))
num_group = len(group_lists) // number of groups// comparison map, in here is a list of tuple.// There are two elements in the tuple, each one is a index of groups