espnet3.components.data.dataset_module.resolve_dataset_module_name
Less than 1 minute
espnet3.components.data.dataset_module.resolve_dataset_module_name
espnet3.components.data.dataset_module.resolve_dataset_module_name(ref: str) → str
Resolve a tag-style ref to a Python module path.
- Parameters:ref – Tag-style dataset ref, typically
<recipe>/<task>. - Returns: Fully qualified module path following
egs3.<recipe>.<task>.dataset.
Notes
Hyphens are normalized to underscores to match Python module naming.
Examples
>>> resolve_dataset_module_name("mini_an4/asr")
'egs3.mini_an4.asr.dataset'
>>> resolve_dataset_module_name("my-recipe/asr")
'egs3.my_recipe.asr.dataset'