(tensor, alpha_path)
| 112 | return alphabet_character |
| 113 | |
| 114 | def tensor2str(tensor, alpha_path): |
| 115 | alphabet = get_alphabet(alpha_path) |
| 116 | string = "" |
| 117 | for i in tensor: |
| 118 | if i == (len(alphabet)-1): |
| 119 | continue |
| 120 | string += alphabet[i] |
| 121 | return string |
nothing calls this directly
no test coverage detected