(self)
Iterate over all image sentence groups
Iterate over all image sentence groups
Iterate over all image sentence groups
def iterImageSentenceGroup(self):
        """Iterate over all image sentence groups"""
        for i, img in enumerate(self.sent_data):
            out = {}
            out['image'] = self._getImage(img)
            out['sentences'] = img['sentences']
            yield out
def iterImageSentenceGroup ( self ) : for i , img in enumerate ( self . sent_data ) : out = { } out [ 'image' ] = self . _getImage ( img ) out [ 'sentences' ] = img [ 'sentences' ] yield out