# How to pad sequences during training for an encoder decoder model

I've got an encoder-decoder model for character level English language spelling correction, it is pretty basic stuff with a two LSTM encoder and another LSTM decoder.

However, up until now, I have been pre-padding the input sequences, like below:

abc  -> -abc
defg -> defg

train_data = {'15': [...], '16': [...], ...}