Comparing version 1.3.0 to 1.4.0
# NodeJieba ChangeLog | ||
## v1.4.0 | ||
* 对MP算法的分词方式新增一个粒度参数,解决[issue29]关于细粒度分词的问题。 | ||
## v1.3.0 | ||
@@ -127,1 +131,2 @@ | ||
[issue36]:https://github.com/yanyiwu/nodejieba/issues/36 | ||
[issue29]:https://github.com/yanyiwu/nodejieba/issues/29 |
{ | ||
"name": "nodejieba", | ||
"description": "chinese word segmentation for node", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"author": "Yanyi Wu <i@yanyiwu.com>", | ||
@@ -32,5 +32,5 @@ "maintainers": [ | ||
"scripts": { | ||
"test": "node test/demo.js && node test/load_dict_demo.js && mocha -R spec test/test.js && mocha -R spec test/load_dict_test.js" | ||
"test": "node test/demo.js && node test/load_dict_demo.js && mocha --timeout 10s -R spec test/test.js && mocha --timeout 10s -R spec test/load_dict_test.js" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -39,1 +39,4 @@ var nodejieba = require("../index.js"); | ||
console.log(result); | ||
result = nodejieba.cut("南京市长江大桥", "MP", 3); | ||
console.log(result); |
@@ -269,2 +269,5 @@ var should = require("should"); | ||
it('nodejieba.cut("南京市长江大桥")', function() { | ||
nodejieba.cut("南京市长江大桥", "MP", 3).should.eql([ '南京市', '长江', '大桥' ]); | ||
}); | ||
}); |
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
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
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
55
341
11711313