Neural generation of open-ended text and dialogue