Generating Narrative Text in a Switching Dynamical System