()
The evaluator.
The evaluator.
The evaluator .
def main():
    """The evaluator."""
    parser = argparse.ArgumentParser()
    parser.add_argument("-submit", "--submit", type=str, required=True,
                        help=' JSON containing submit sentences.')
    parser.add_argument("-ref", "--ref", type=str,
                        help=' JSON references.')
    args = parser.parse_args()

    json_predictions_file = args.submit
    reference_file = args.ref
    print compute_m1(json_predictions_file, reference_file)
def main ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( "-submit" , "--submit" , type = str , required = True , help = ' JSON containing submit sentences.' ) parser . add_argument ( "-ref" , "--ref" , type = str , help = ' JSON references.' ) args = parser . parse_args ( ) json_predictions_file = args . submit reference_file = args . ref print compute_m1 ( json_predictions_file , reference_file )