Skip to content

build_vocab

allennlp.commands.build_vocab

[SOURCE]


Subcommand for building a vocabulary from a training config.

BuildVocab#

@Subcommand.register("build-vocab")
class BuildVocab(Subcommand)

add_subparser#

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

build_vocab_from_args#

def build_vocab_from_args(args: argparse.Namespace)