add word segmentation part, though not perfect, works