espnet2.utils.config_argparse.ArgumentParser
Less than 1 minute
espnet2.utils.config_argparse.ArgumentParser
class espnet2.utils.config_argparse.ArgumentParser(*args, **kwargs)
Bases: ArgumentParser
Simple implementation of ArgumentParser supporting config file
This class is originated from https://github.com/bw2/ConfigArgParse, but this class is lack of some features that it has.
- Not supporting multiple config files
- Automatically adding “–config” as an option.
- Not supporting any formats other than yaml
- Not checking argument type
parse_known_args(args=None, namespace=None)