Text this: Learning recurrent dynamics in spiking networks