feature['geometry']['coordinates'][0])
        new_phrase_dict['phrase'] = feature['NameAfterDictionary']
        new_phrase_dict['rects'] = [new_gt_rect]
        new_phrase_dict['orientation'] = Orientation.ISOLATED
        new_phrase_dict['matching'] = [[]]
        new_phrase_dict['found'] = ['False']
        new_phrase_dict['editing'] = [(0, 0, 0, 0)]
        gt_list.append(new_phrase_dict)

    return gt_list


if __name__ == '__main__':
    groundTruthFile = sys.argv[1]
    resultFile = sys.argv[2]
    output_file = open("../Output/matching_list.txt", "w")

    result_obj = load_json_file(resultFile)
    gt_list = load_result_as_ground_truth(result_obj)
    gt_list = list(reversed(gt_list))
    result_rect_list = get_result_rectangles(result_obj)
    ret = ResultEvaluation.find_result_ground_truth_correspondence(gt_list, result_rect_list)
    matching_lists = ret[0]

    for ml in matching_lists:
        for m in ml:
            output_str = str(m[0])
            output_file.write(output_str)
            output_file.write("\n")
        output_file.write("\n")