Code for Unsupervised multi-granular Chinese word segmentation and term discovery via graph partition