:mod:`lookout.style.typos.cmdline_tools` ======================================== .. py:module:: lookout.style.typos.cmdline_tools .. autoapi-nested-parse:: Command line utilities to check the quality of a model on a given dataset, visualize errors, etc. Module Contents --------------- .. function:: add_config_arg(my_parser:ArgumentParser) Add config argument. :param my_parser: Parser to add the argument to. .. function:: add_data_path_arg(my_parser:ArgumentParser) Add data path argument. :param my_parser: Parser to add the argument to. .. function:: add_corrector_path_arg(my_parser:ArgumentParser) Add save model path argument. :param my_parser: Parser to add the argument to. .. function:: cli_train_fasttext(data_path:str, config:Mapping[str, Any]) Entry point for `train_fasttext`. .. function:: cli_get_datasets(data_path:str, config:Mapping[str, Any]) Entry point for `get_datasets`. .. function:: cli_train_corrector(train:str, test:str, vocabulary_path:str, frequencies_path:str, fasttext_path:str, corrector_path:str, config:Mapping[str, Any]) Entry point for `train_and_evaluate`. .. function:: create_parser() Create a parser for the lookout.style.typos utility. :return: an ArgumentParser with an handler defined in the handler attribute. .. function:: main() Entry point of the utility.