code: def one_hot2string(arr, vocab):
      
      tokens = one_hot2token(arr)
      indexToLetter = _get_index_dict(vocab)
  
      return [''.join([indexToLetter[x] for x in row]) for row in tokens]
docs: Convert a one-hot encoded array back to string