Segments text into sentences.