Skip to content

cached_path

allennlp.commands.cached_path

[SOURCE]


CLI to the the caching mechanism in common.file_utils.

CachedPath

@Subcommand.register("cached-path")
class CachedPath(Subcommand)

requires_plugins

class CachedPath(Subcommand):
 | ...
 | requires_plugins: bool = False

add_subparser

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