class_to_yaml
allennlp_hydra.commands.class_to_yaml
Command to convert a class to a yaml. Registered as cls2yml
ClassToYaml#
@Subcommand.register("class2yaml")
class ClassToYaml(Subcommand)
add_subparser#
class ClassToYaml(Subcommand):
| ...
| @overrides
| def add_subparser(
| self,
| parser: argparse._SubParsersAction
| ) -> argparse.ArgumentParser
class_to_yaml_from_args#
def class_to_yaml_from_args(args: argparse.Namespace) -> Dict
class_to_yaml#
def class_to_yaml(
cls_name: str,
base_cls_name: str,
serialization_dir: str,
force: bool = False
) -> Dict