    def __init__(self, raw_file, list_file):
        """ raw_file: swbd_sre_combined_20k_20480.h5
            list_file: list/training3.txt, list/val3.txt
        """
        self.raw_file  = raw_file 

        with open(list_file) as f:
            temp = f.readlines()
        all_utt = [x.strip() for x in temp]
    
        # dictionary mapping unique utt id to its number of voied segments
        self.utts = defaultdict(lambda: 0)
        for i in all_utt: 
            count  = i.split('-')[-1]
            utt_uniq = i[:-(len(count)+1)]
            self.utts[utt_uniq] += 1 # count 
raw_file: swbd_sre_combined_20k_20480.h5
list_file: list/training3.txt, list/val3.txt
src/data_reader/dataset.py