segment_sentences function

Perform sentence segmentation on text