A library for generalized sequence to sequence models