class_docstr: Convert between text-label and text-index 
class_docstr_tok: ["Convert","between","text-label","and","text-index"]
code: def decode_wordbeamsearch(self, mat, beamWidth=5):
      texts = []
      argmax = np.argmax(mat, axis=2)
      for i in range(mat.shape[0]):
          words = word_segmentation(argmax[i])
          string = ""
          for word in words:
              matrix = mat[i, word[1][0] : word[1][1] + 1, :]
              if word[0] == "":
                  dict_list = []
              else:
                  dict_list = self.dict_list[word[0]]
              t = ctcBeamSearch(
                  matrix,
                  self.character,
                  self.ignore_idx,
                  None,
                  beamWidth=beamWidth,
                  dict_list=dict_list,
              )
              string += t
          texts.append(string)
      return texts
  
imports: import torch
  import pickle
  import numpy
label_desc: Use image node_id 5 for calling the CTCLabelConverter obj's underlying member method code with example usage: obj.decode_wordbeamsearch(mat, beamWidth) and returns: texts