docstr: convert text-label into text-index.
          
docstr_tok: ["convert","text-label","into","text-index","."]
code: def decode(self, structure_probs, bbox_preds, shape_list):
      """convert text-label into text-index."""
      ignored_tokens = self.get_ignored_tokens()
      end_idx = self.dict[self.end_str]
  
      structure_idx = structure_probs.argmax(axis=2)
      structure_probs = structure_probs.max(axis=2)
  
      structure_batch_list = []
      bbox_batch_list = []
      batch_size = len(structure_idx)
      for batch_idx in range(batch_size):
          structure_list = []
          bbox_list = []
          score_list = []
          for idx in range(len(structure_idx[batch_idx])):
              char_idx = int(structure_idx[batch_idx][idx])
              if idx > 0 and char_idx == end_idx:
                  break
              if char_idx in ignored_tokens:
                  continue
              text = self.character[char_idx]
              if text in self.td_token:
                  bbox = bbox_preds[batch_idx, idx]
                  bbox = self._bbox_decode(bbox, shape_list[batch_idx])
                  bbox_list.append(bbox)
              structure_list.append(text)
              score_list.append(structure_probs[batch_idx, idx])
          structure_batch_list.append(
              [structure_list, np.mean(score_list)]
          )
          bbox_batch_list.append(np.array(bbox_list))
      result = {
          "bbox_batch_list": bbox_batch_list,
          "structure_batch_list": structure_batch_list,
      }
      return result
  
file_path: PaddleOCR/ppocr/postprocess/table_postprocess.py
imports: import numpy
  import paddle
  from .rec_postprocess import AttnLabelDecode
label_desc: Use image node_id 3 for calling the TableLabelDecode obj's underlying member method code with example usage: obj.decode(structure_probs, bbox_preds, shape_list) and returns: result