def main(arguments):
global verbose<EOL>global veryVerbose<EOL>global iteration_num<EOL>global single_score<EOL>global pr_flag<EOL>global match_triple_dict<EOL>iteration_num = arguments.r + <NUM_LIT:1><EOL>if arguments.ms:<EOL><INDENT>single_score = False<EOL><DEDENT>if arguments.v:<EOL><INDENT>verbose = True<EOL><DEDENT>if arguments.vv:<EOL><INDENT>veryVerbose = True<EOL><DEDENT>if arguments.pr:<EOL><INDENT>pr_flag = True<EOL><DEDENT>floatdisplay = "<STR_LIT>" % arguments.significant<EOL>for (precision, recall, best_f_score) in score_amr_pairs(args.f[<NUM_LIT:0>], args.f[<NUM_LIT:1>],<EOL>justinstance=arguments.justinstance,<EOL>justattribute=arguments.justattribute,<EOL>justrelation=arguments.justrelation):<EOL><INDENT>if pr_flag:<EOL><INDENT>print("<STR_LIT>" + floatdisplay % precision)<EOL>print("<STR_LIT>" + floatdisplay % recall)<EOL><DEDENT>print("<STR_LIT>" + floatdisplay % best_f_score)<EOL><DEDENT>args.f[<NUM_LIT:0>].close()<EOL>args.f[<NUM_LIT:1>].close()<EOL>
Main function of smatch score calculation