build_vocab
allennlp.commands.build_vocab
Subcommand for building a vocabulary from a training config.
BuildVocab¶
@Subcommand.register("build-vocab")
class BuildVocab(Subcommand)
add_subparser¶
class BuildVocab(Subcommand):
| ...
| def add_subparser(
| self,
| parser: argparse._SubParsersAction
| ) -> argparse.ArgumentParser
build_vocab_from_args¶
def build_vocab_from_args(args: argparse.Namespace)