espnet3.bin.clone.resolver.resolve_recipe
Less than 1 minute
espnet3.bin.clone.resolver.resolve_recipe
espnet3.bin.clone.resolver.resolve_recipe(recipe: str) → Path
Resolve a recipe identifier to a local path in egs3/.
- Parameters:recipe – Recipe identifier in “<dataset>/<task>” format, e.g.
"mini_an4/esp2_asr". - Returns: Absolute path to the recipe directory inside egs3/.
- Raises:
- ValueError – If the recipe identifier is not in
<dataset>/<task>format. - FileNotFoundError – If the recipe is not found locally.
- ValueError – If the recipe identifier is not in
Notes
Currently only resolves from the local egs3/ directory. GitHub fallback is planned for a future release.
Examples
>>> from pathlib import Path
>>> path = resolve_recipe("mini_an4/esp2_asr")
>>> path.name
'esp2_asr'
>>> path.parent.name
'mini_an4'