How to train with batch of sentences in sequence_models_tutorial?

In the following tutorial, the trainining is sentence by sentence. How to train a batch of sentenses at each iteration? Could anybody show the working code? Thanks.

http://pytorch.org/tutorials/beginner/nlp/sequence_models_tutorial.html