Encoding And Decoding In Rnn