Build a flat recurrent encoder-decoder dialogue model

def build_fred(self):
        '''Build a flat recurrent encoder-decoder dialogue model'''

        encoder = Encoder(data=self.data, config=self.model_config)
        decoder = Decoder(data=self.data, config=self.model_config, encoder=encoder)

        return EncoderDecoder(config=self.model_config, encoder=encoder, decoder=decoder)