def parse_args()

in IWSLT2022/scorer.py [0:0]


def parse_args():
    parser = argparse.ArgumentParser()

    parser.add_argument(
        "-hyp",
        "--hypotheses",
        type=str,
        help="File containing system detokenized output translations"
    )
    parser.add_argument(
        "-f",
        "--formal_refs",
        type=str,
        help="File containing formal references with annotated grammatical formality"
    )
    parser.add_argument(
        "-if",
        "--informal_refs",
        type=str,
        help="File containing informal references with annotated grammatical formality."
    )
    parser.add_argument(
        "-nd",
        "--non_whitespace_delimited",
        action="store_true",
        help="If the target language tokens are non-whitespace delimited (e.g. for Japanese)"
    )

    return parser.parse_args()