The first one encodes a word image into a vector and the second one decodes the vector into a character sequence or word.
iCR title lines were only split on whitespaces and we kept with the punctuations in the data.