(self, split)
Read sentences and image features from pickled dict

        Args:
            split (str): test or train split
Read sentences and image features from pickled dict
Read sentences and image features from pickled dict
def read_images(self, split):
        """
        Read sentences and image features from pickled dict

        Args:
            split (str): test or train 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']
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' ]