dcase_util.tools.DatasetPacker
- class dcase_util.tools.DatasetPacker(package_size_limit=None, convert_md_to_html=True, md_to_html_template=None, package_extension='zip', filename_template='{dataset_name}.{data_name}.{extension}')[source]
Constructor
- Parameters
- package_size_limitint
Package size limit in bytes (uncompressed), bigger packages will be split into multiple packages. Default value None
- convert_md_to_htmlbool
Convert Markdown document to HTML. Original Markdown document is kept. Default value True
- md_to_html_templatestr
Template override for HTML document. If None given, default one is used. Default value None
- package_extensionstr
Package extension Default value ‘zip’
- filename_templatestr
Template for dataset package filenames. Default value ‘{dataset_name}.{data_name}.{extension}’
- __init__(package_size_limit=None, convert_md_to_html=True, md_to_html_template=None, package_extension='zip', filename_template='{dataset_name}.{data_name}.{extension}')[source]
Constructor
- Parameters
- package_size_limitint
Package size limit in bytes (uncompressed), bigger packages will be split into multiple packages. Default value None
- convert_md_to_htmlbool
Convert Markdown document to HTML. Original Markdown document is kept. Default value True
- md_to_html_templatestr
Template override for HTML document. If None given, default one is used. Default value None
- package_extensionstr
Package extension Default value ‘zip’
- filename_templatestr
Template for dataset package filenames. Default value ‘{dataset_name}.{data_name}.{extension}’
Methods
__init__
([package_size_limit, ...])Constructor
convert_markdown
(source_filename, ...)Convert markdown document to HTML document.
pack
([dataset_name, content, output_path, ...])Pack dataset.
Attributes
logger