Comparing version 2.1.0 to 2.2.0
# NodeJieba ChangeLog | ||
## v2.2.0 | ||
+ add api `cutSmall` to cut words in specific word length limit | ||
## v2.1.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "nodejieba", | ||
"description": "chinese word segmentation for node", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": "Yanyi Wu <i@yanyiwu.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
@@ -38,3 +38,3 @@ var nodejieba = require("../index.js"); | ||
result = nodejieba.cut("南京市长江大桥", "MP", 3); | ||
result = nodejieba.cutSmall("南京市长江大桥", 3); | ||
console.log(result); |
@@ -289,2 +289,8 @@ var should = require("should"); | ||
}); | ||
it('nodejieba.cutSmall("南京市长江大桥", 3)', function() { | ||
nodejieba.cutSmall("南京市长江大桥", 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
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
365
11729131
55