Sequence-to-Sequence Learning with Latent Neural Grammars