def AccWordStatsForUtterance(split_lines_of_utt, segments_for_utterance):
    global word_count_pair
    line_is_in_segment = ([False] * len(split_lines_of_utt))
    for segment in segments_for_utterance:
        for i in range(segment.start_index, segment.end_index):
            line_is_in_segment[i] = True
    for i in range(len(split_lines_of_utt)):
        this_ref_word = split_lines_of_utt[i][6]
        if (this_ref_word != '<eps>'):
            word_count_pair[this_ref_word][0] += 1
            if (not line_is_in_segment[i]):
                word_count_pair[this_ref_word][1] += 1
def AccWordStatsForUtterance(split_lines_of_utt, segments_for_utterance):
    global word_count_pair
    line_is_in_segment = ([False] * len(split_lines_of_utt))
    for segment in segments_for_utterance:
        for i in range(segment.start_index, segment.end_index):
            line_is_in_segment[i] = True
    for i in range(len(split_lines_of_utt)):
        this_ref_word = split_lines_of_utt[i][6]
        if (this_ref_word != '<eps>'):
            word_count_pair[this_ref_word][0] += 1
            if (not line_is_in_segment[i]):
                word_count_pair[this_ref_word][1] += 1