Chinese word segmentation code