Added options between rnn and bag of parts in encdec