dcase_util.tools.DatasetPacker.pack

DatasetPacker.pack(dataset_name='dcase-dataset', content=None, output_path=None, base_path=None, overwrite=False, verbose=True)[source]

Pack dataset.

Parameters
dataset_namestr

Dataset name Default value ‘dcase-dataset’

contentlist of dict

List of packages to be packed. Package item dict should have format {‘data_name’: ‘doc’, ‘file_list’: [{‘source’: ‘file1.txt’}]}. Default value None

output_pathstr

Path to which packages are saved. Default value None

base_pathstr

Base path of the data. If per item package paths are not given (‘target’ field), this parameter is used to create one from source path. Default value None

overwritebool

Overwrite existing packages. Default value False

verbosebool

Show information during the packing. Default value True

Returns
nothing