Skip to content

count_instances

allennlp.commands.count_instances

[SOURCE]


Subcommand for counting the number of instances from a training config.

CountInstances

@Subcommand.register("count-instances")
class CountInstances(Subcommand)

add_subparser

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

count_instances_from_args

def count_instances_from_args(args: argparse.Namespace)