()
return args
Get args from stdin.
Get args from stdin.
Get args from stdin .
def get_args():
    """ Get args from stdin.
    """

    parser = argparse.ArgumentParser(
        description="Create a tar file for fast DNN training.  Each of minibatch data will "
                    "saved to a separate numpy file within tar file.  The output file can be "
                    "accessed in sequential mode or in random access mode but the sequential "
                    "more is faster.",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter,
        conflict_handler='resolve')

    parser.add_argument("--sampling-frequency", dest="sampling_frequency", type=str, choices=["8k", "16k"], default="8k",
                        help="Sampling frequency of the input files.")

    parser.add_argument("sre18_dev_dir", type=str, help="Path to SRE18 development directory.")

    parser.add_argument("output_dir", type=str, help="Path to output directory.")

    print(' '.join(sys.argv))

    args = parser.parse_args()

    args = process_args(args)

    return args
def get_args ( ) : parser = argparse . ArgumentParser ( description = "Create a tar file for fast DNN training.  Each of minibatch data will " "saved to a separate numpy file within tar file.  The output file can be " "accessed in sequential mode or in random access mode but the sequential " "more is faster." , formatter_class = argparse . ArgumentDefaultsHelpFormatter , conflict_handler = 'resolve' ) parser . add_argument ( "--sampling-frequency" , dest = "sampling_frequency" , type = str , choices = [ "8k" , "16k" ] , default = "8k" , help = "Sampling frequency of the input files." ) parser . add_argument ( "sre18_dev_dir" , type = str , help = "Path to SRE18 development directory." ) parser . add_argument ( "output_dir" , type = str , help = "Path to output directory." ) print ( ' ' . join ( sys . argv ) ) args = parser . parse_args ( ) args = process_args ( args ) return args