code: def main():
      
      params = argparse.ArgumentParser(description="Create or inspect a top-k lexicon for use during decoding.")
      subparams = params.add_subparsers(title="Commands")
  
      params_create = subparams.add_parser('create', description="Create top-k lexicon for use during decoding. "
                                                                 "See sockeye_contrib/fast_align/README.md "
                                                                 "for information on creating input lexical tables.")
      arguments.add_lexicon_args(params_create)
      arguments.add_lexicon_create_args(params_create)
      arguments.add_logging_args(params_create)
      params_create.set_defaults(func=create)
  
      params_inspect = subparams.add_parser('inspect', description="Inspect top-k lexicon for use during decoding.")
      arguments.add_lexicon_inspect_args(params_inspect)
      arguments.add_lexicon_args(params_inspect)
      params_inspect.set_defaults(func=inspect)
  
      args = params.parse_args()
      if 'func' not in args:
          params.print_help()
          return 1
      else:
          args.func(args)
docs: Commandline interface for building/inspecting top-k lexicons using during decoding.