Fix idx2char
@@ -42,7 +42,7 @@ def dense_tensor_to_chars(tensor, idx2char, startindex, endindex):
for idx in tensor[batch_num]:
if idx == endindex:
break
- text[batch_num] += idx2char(idx)
+ text[batch_num] += idx2char[idx]
return text
