(self, X, calc_argmax=True)
return ''.join(self.indices_char[x] for x in X if x)
Decode from one-hot
Decode from one-hot
Decode from one - hot
def decode(self, X, calc_argmax=True):
        """Decode from one-hot"""
        if calc_argmax:
            X = X.argmax(axis=-1)
        return ''.join(self.indices_char[x] for x in X if x)
def decode ( self , X , calc_argmax = True ) : if calc_argmax : X = X . argmax ( axis = - 1 ) return '' . join ( self . indices_char [ x ] for x in X if x )