def prepare(self):
    'Prepare dataset for the usage.\n\n        Returns\n        -------\n        self\n\n        '
    if (not self.meta_container.exists()):
        meta_data = MetaDataContainer()
        annotation_files = Path().file_list(path=os.path.join(self.local_path, 'meta'), extensions=['ann'])
        for annotation_filename in annotation_files:
            scene_label = os.path.split(os.path.split(annotation_filename)[0])[1]
            identifier = os.path.splitext(os.path.split(annotation_filename)[1])[0]
            audio_filename = os.path.join('audio', scene_label, (identifier + '.wav'))
            data = MetaDataContainer(filename=annotation_filename).load()
            for item in data:
                item.filename = audio_filename
                item.scene_label = scene_label
                self.process_meta_item(item=item, absolute_path=False)
            meta_data += data
        meta_data.save(filename=self.meta_file)
        self.load()
    return self
Prepare dataset for the usage.

Returns
-------
self
def prepare(self):
    'Prepare dataset for the usage.\n\n        Returns\n        -------\n        self\n\n        '
    if (not self.meta_container.exists()):
        meta_data = MetaDataContainer()
        annotation_files = Path().file_list(path=os.path.join(self.local_path, 'meta'), extensions=['ann'])
        for annotation_filename in annotation_files:
            scene_label = os.path.split(os.path.split(annotation_filename)[0])[1]
            identifier = os.path.splitext(os.path.split(annotation_filename)[1])[0]
            audio_filename = os.path.join('audio', scene_label, (identifier + '.wav'))
            data = MetaDataContainer(filename=annotation_filename).load()
            for item in data:
                item.filename = audio_filename
                item.scene_label = scene_label
                self.process_meta_item(item=item, absolute_path=False)
            meta_data += data
        meta_data.save(filename=self.meta_file)
        self.load()
    return self