lookout.style.typos.cmdline_tools¶
Command line utilities to check the quality of a model on a given dataset, visualize errors, etc.
Module Contents¶
-
lookout.style.typos.cmdline_tools.add_config_arg(my_parser:ArgumentParser)¶ Add config argument.
Parameters: my_parser – Parser to add the argument to.
-
lookout.style.typos.cmdline_tools.add_data_path_arg(my_parser:ArgumentParser)¶ Add data path argument.
Parameters: my_parser – Parser to add the argument to.
-
lookout.style.typos.cmdline_tools.add_corrector_path_arg(my_parser:ArgumentParser)¶ Add save model path argument.
Parameters: my_parser – Parser to add the argument to.
-
lookout.style.typos.cmdline_tools.cli_train_fasttext(data_path:str, config:Mapping[str, Any])¶ Entry point for train_fasttext.
-
lookout.style.typos.cmdline_tools.cli_get_datasets(data_path:str, config:Mapping[str, Any])¶ Entry point for get_datasets.
-
lookout.style.typos.cmdline_tools.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.
-
lookout.style.typos.cmdline_tools.create_parser()¶ Create a parser for the lookout.style.typos utility.
Returns: an ArgumentParser with an handler defined in the handler attribute.
-
lookout.style.typos.cmdline_tools.main()¶ Entry point of the utility.