add a more sophisticated TP in word_seg