docs: def score_amr_pairs(f1, f2, justinstance=False, justattribute=False, justrelation=False):
      """
      Score one pair of AMR lines at a time from each file handle
      :param f1: file handle (or any iterable of strings) to read AMR 1 lines from
      :param f2: file handle (or any iterable of strings) to read AMR 2 lines from
      :param justinstance: just pay attention to matching instances
      :param justattribute: just pay attention to matching attributes
      :param justrelation: just pay attention to matching relations
      :return: generator of cur_amr1, cur_amr2 pairs: one-line AMR strings
      """
      # matching triple number, triple number in test file, triple number in gold file
      total_match_num = total_test_num = total_gold_num = 0
      # Read amr pairs from two files
      for sent_num, (cur_amr1, cur_amr2) in enumerate(generate_amr_lines(f1, f2), start=1):
          best_match_num, test_triple_num, gold_triple_num = get_amr_match(cur_amr1, cur_amr2,
                                                                           sent_num=sent_num,  # sentence number
                                                                           justinstance=justinstance,
                                                                           justattribute=justattribute,
                                                                           justrelation=justrelation)
          total_match_num += best_match_num
          total_test_num += test_triple_num
          total_gold_num += gold_triple_num
          # clear the matching triple dictionary for the next AMR pair
          match_triple_dict.clear()
          if not single_score:  # if each AMR pair should have a score, compute and output it here
              yield compute_f(best_match_num, test_triple_num, gold_triple_num)
      if verbose:
          print("Total match number, total triple number in AMR 1, and total triple number in AMR 2:", file=DEBUG_LOG)
          print(total_match_num, total_test_num, total_gold_num, file=DEBUG_LOG)
          print("---------------------------------------------------------------------------------", file=DEBUG_LOG)
      if single_score:  # output document-level smatch score (a single f-score for all AMR pairs in two files)
          yield compute_f(total_match_num, total_test_num, total_gold_num)