Skip to content

nodeyang/nodejieba

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJieba Jieba中文分词的node版本

概述

NodeJieba只是CppJieba简单包装而成的node扩展,用来进行中文分词。

安装和使用

npm install nodejieba

使用实例

mkdir nodejieba_test
cd nodejieba_test
npm install nodejieba

echo "var segment = require(\"nodejieba\");
segment.loadDict(\"./node_modules/nodejieba/dict/jieba.dict.utf8\", \"./node_modules/nodejieba/dict/hmm_model.utf8\");
console.log(segment.cut(\"你好世界\"));" > index.js

node index.js

测试

node v0.10.2下测试通过

演示

http://cppjieba-webdemo.herokuapp.com/

鸣谢

jieba中文分词

客服

[email protected]

About

Jieba中文分词的node版本

Resources

License

Stars

Watchers

Forks

Packages

No packages published