def label_seq(string): idxs = font.indexify(string) return idxs
def label_seq(string): idxs = font.indexify(string) result = np.ones((len(idxs) * 2 + 1,), dtype=np.int32) * -1 result[np.arange(len(idxs)) * 2 + 1] = idxs print result return result
def label_seq(string): idxs = font.indexify(string) result = np.ones((len(idxs) * 2 + 1, ), dtype=np.int32) * -1 result[np.arange(len(idxs)) * 2 + 1] = idxs print result return result