'Read sentences and image features from pickled dict
Args:
split (str): test or train split'

def read_images(self, split):

    data_path = os.path.join(self.path, 'features.pkl.gz')
    from neon.util.persist import load_obj
    self.dataset = load_obj(data_path)
    self.sent_data = self.dataset['sents'][split]
    self.features = self.dataset['feats']
