Sequence Modeling via Segmentations