From: https://guillaumegenthial.github.io/sequence-to-sequence.html