Constraint-based Word Segmentation for Chinese