This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
seg-zhcn with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Seg-zhCN is a simplified Chinese segmentation method.
License: This project is under GPL/BSD
Seg-zhCN focus on:
Seg-zhCN don't care about:
npm install seg-zhcn
// require var seg = require('seg-zhcn'); // statement var s = "我是中国人"; // get info var info = seg.parse(s); console.log(info.cjkInfo); console.log(info.segInfo); console.log(info.segment()); // 我 是 中国 人 // merge all steps into one step console.log(seg.split(s));
This guy currently works in Wiredcraft.com. So you could also get him by email@example.com
All rights reserved.