Training an RNN with teacher forcing