import os
import pickle

feat_file = '/afs/inf.ed.ac.uk/group/project/prosody/prosody_nlp/data/input_features/turn_part_fixed/turn_dev_partition.pickle'
pit_file = '/afs/inf.ed.ac.uk/group/project/prosody/prosody_nlp/data/input_features/turn_part_fixed/turn_dev_pitch.pickle'

parts = pickle.load(open(feat_file,'rb'))
pitch = pickle.load(open(pit_file,'rb'))

longest_part = ''
max_len = 0
for part in parts:
    if len(parts[part]) > max_len:
        longest_part = part
        max_len = len(parts[part])

        

import pdb;pdb.set_trace()
                    
