Skip to content

tango

allennlp.commands.tango

[SOURCE]


Subcommand for running Tango experiments

Tango

@Subcommand.register("tango")
class Tango(Subcommand)

add_subparser

class Tango(Subcommand):
 | ...
 | def add_subparser(
 |     self,
 |     parser: argparse._SubParsersAction
 | ) -> argparse.ArgumentParser

run_tango_from_args

def run_tango_from_args(args: argparse.Namespace)

run_tango_from_file

def run_tango_from_file(
    tango_filename: Union[str, PathLike],
    serialization_dir: Union[str, PathLike],
    overrides: Union[str, Dict[str, Any]] = "",
    include_package: Optional[List[str]] = None,
    dry_run: bool = False,
    file_friendly_logging: bool = False
)

run_tango

def run_tango(
    params: Params,
    serialization_dir: Union[str, PathLike],
    include_package: Optional[List[str]] = None,
    dry_run: bool = False,
    file_friendly_logging: bool = False
)