Text this: A leaky integrate-and-fire model with adaptation for the generation of a spike train