def asr_programmatic_wrapper(ref, hyp, head_ids, tail_ids, case_insensitive, remove_empty_refs): programmatic_ns = Namespace(ref=open(ref), hyp=open(hyp), head_ids=head_ids, tail_ids=tail_ids, case_insensitive=case_insensitive, remove_empty_refs=remove_empty_refs, print_instances=False, print_errors=False, confusions=False, min_word_count=False, print_wer_vs_length=False, programmatically=True) return other_main(programmatic_ns)
def main(): """Run the program.""" parser = get_parser() args = parser.parse_args() other_main(args)
def main(): parser = get_parser() args = parser.parse_args() other_main(args)