Comparing version 0.1.1 to 0.1.2
@@ -1,7 +0,9 @@ | ||
## v0.1.0 | ||
## v0.1.2 | ||
依照node的c++扩展的常规写法,对CppJieba进行简单的包装,并已`npm publish` | ||
* 更新[CppJieba],使用`less_memory`这个branch来减少Trie树内存的开销。 | ||
## v0.1.1 | ||
修改README.md相关使用示例 | ||
* 依照node的c++扩展的常规写法,对CppJieba进行简单的包装,并已`npm publish` | ||
[CppJieba]:http://github.com/aszxqw/cppjieba.git |
{ | ||
"name": "nodejieba", | ||
"description": "chinese segment for node", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Yanyi Wu <wuyanyi09@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
@@ -1,2 +0,2 @@ | ||
# NodeJieba Jieba中文分词的node版本 | ||
# NodeJieba "结巴"中文分词的node版本 | ||
@@ -7,2 +7,4 @@ ## 概述 | ||
详见[nodejieba_blog] | ||
## 安装和使用 | ||
@@ -21,3 +23,3 @@ | ||
segment.loadDict(\"./node_modules/nodejieba/dict/jieba.dict.utf8\", \"./node_modules/nodejieba/dict/hmm_model.utf8\"); | ||
console.log(segment.cut(\"你好世界\"));" > index.js | ||
console.log(segment.cut(\"南京市长江大桥\"));" > index.js | ||
@@ -31,5 +33,10 @@ node index.js | ||
## 演示 | ||
http://cppjieba-webdemo.herokuapp.com/ | ||
(chrome is suggested) | ||
## 鸣谢 | ||
[jieba中文分词](https://github.com/fxsjy/jieba) | ||
[结巴中文分词](https://github.com/fxsjy/jieba) | ||
@@ -40,3 +47,3 @@ ## 客服 | ||
[blog1]:http://aszxqw.github.io/jekyll/update/2014/01/23/nodejs-chu-ti-yan.html | ||
[nodejieba_blog]:http://aszxqw.github.io/jekyll/update/2014/02/22/nodejs-cpp-addon-nodejieba.html | ||
[CppJieba]:https://github.com/aszxqw/cppjieba.git |
var segment = require("../index.js"); | ||
segment.loadDict("./dict/jieba.dict.utf8", "./dict/hmm_model.utf8"); | ||
console.log(segment.cut("你好世界")); | ||
console.log(segment.cut("你好世界")); | ||
console.log(segment.cut("南京市长江大桥")); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
35
46
5691300
5