def batches2id(batches):
 s = ([''] * batches[0].shape[0])
 for b in batches:
  s = [''.join(x) for x in zip(s, ids(b))]
 return s

def batches2id ( batches ) : s = ( [ '' ] * batches [ 0 ] . shape [ 0 ] ) for b in batches : s = [ '' . join ( x ) for x in zip ( s , ids ( b ) ) ] return s
convert a sequence of batches back into their string representation .