def main(): """ Read input dir, dump in output dir """ cfg = CliConfig(description='C53 xml to text', input_description='XML files (via antiword)', glob='*.xml') psr = iodir_argparser(cfg) args = psr.parse_args() generic_main(cfg, convert, args)
def main(): """ Read input dir, dump in output dir """ cfg = CliConfig(description='Fine Rolls xml to text', input_description='XML files (manually annotated TEI)', glob='roll*.xml') psr = iodir_argparser(cfg) args = psr.parse_args() generic_main(cfg, convert, args)
def main(): """ Read input dir, dump in output dir """ cfg = CliConfig(description='TTT petitions converter', input_description='.dat files', glob='*.dat') psr = iodir_argparser(cfg) args = psr.parse_args() generic_main(cfg, convert, args)
def main(): """ Read input dir, dump in output dir """ cfg = CliConfig(description='state papers to text', input_description='XML files', glob='*.xml') psr = iodir_argparser(cfg) args = psr.parse_args() generic_main(cfg, _do_file, args)
def main(): "read cli args, loop on dir" cfg = CliConfig(description='annotations converter', input_description='annotated text files', glob='*') psr = iodir_argparser(cfg) psr.add_argument('--format', choices=['human', 'gate'], default='human', help='input markup format') args = psr.parse_args() generic_main(cfg, mk_converter(args.format), args)