Use NLTK to do word segmentation on the document. Spaces between words will be replaced with newlines.