README_EN

NodeJieba 简体中文

Introduction

The Jieba Chinese Word Segmentation Implemented By Node.js .

Download

npm install nodejieba

Or cnpm instead of npm

npm --registry=http://r.cnpmjs.org install nodejieba

Usage

var nodejieba = require("nodejieba");
var result = nodejieba.cut("南京市长江大桥");
console.log(result);
//["南京市","长江大桥"]

See details in test/demo.js

POS Tagging

var nodejieba = require("nodejieba");
console.log(nodejieba.tag("红掌拨清波"));
// [ '红掌:n', '拨:v', '清波:n' ]

See details in test/demo.js

Keyword Extractor

var nodejieba = require("nodejieba");
console.log(nodejieba.extract("升职加薪,当上CEO,走上人生巅峰。", 4));
// [ 'CEO:11.7392', '升职:10.8562', '加薪:10.6426', '巅峰:9.49396' ]

See details in test/demo.js

Testing

Testing passed in the following version:

  • node v0.10.2

  • node v0.12.1

  • iojs v1.3.0

  • iojs v2.2.1

  • node v4.0.0

Cases

Performance

It is supposed to be the best in the angle of high performance, because its basic foundation is powered by C++.

Online Demo

http://cppjieba-webdemo.herokuapp.com/ (chrome is suggested)

Contact

Email: i@yanyiwu.com QQ: 64162451

Licens

MIT http://yanyiwu.mit-license.org

Thanks

  • [Jieba]

Author

Last updated