docstr: Merge the OCR result into structure token to get final results.
  :param match_results:
  :return:
docstr_tok: ["Merge","the","OCR","result","into","structure","token","to","get","final","results",".",":","param","match_results",":",":","return",":"]
code: def get_merge_result(self, match_results):
      """
      Merge the OCR result into structure token to get final results.
      :param match_results:
      :return:
      """
      merged_results = dict()
  
      # break_token is linefeed token, when one master bbox has multiply end2end bboxes.
      break_token = " "
  
      for idx, (file_name, match_info) in enumerate(
          match_results.items()
      ):
          end2end_info = self.end2end_results[file_name]
          master_token_list = match_info["matched_master_token_list"]
          match_list = match_info["match_list_add_extra_match"]
  
          match_dict = get_match_dict(match_list)
          match_text_dict = get_match_text_dict(
              match_dict, end2end_info, break_token
          )
          merged_result = insert_text_to_token(
              master_token_list, match_text_dict
          )
          merged_result = deal_bb(merged_result)
  
          merged_results[file_name] = merged_result
  
      return merged_results
  
imports: import os
  import re
  import cv2
  import glob
  import copy
  import math
  import pickle
  import numpy
  from shapely.geometry import Polygon, MultiPoint
label_desc: Use image node_id 4 for calling the Matcher obj's underlying member method code with example usage: obj.get_merge_result(match_results) and returns: merged_results