Spoiler alert: this is a toy project and it does not work very well yet.
Use transformer models to generate poetry / poetic texts, presented at MRC-IEU Programme 4 away day, October 2020.
To bootstrap, obtain the source datasets used and then check out the makefile.
Reference: