Comparing version 0.2.1 to 0.2.2
@@ -0,1 +1,5 @@ | ||
## v0.2.2 | ||
* 在queryLoadDict 函数中增加query模式的粒度阈值作为可选参数。 | ||
## v0.2.1 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "nodejieba", | ||
"description": "chinese segment for node", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "Yanyi Wu <wuyanyi09@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
var segment = require("../index.js"); | ||
segment.queryLoadDict("./dict/jieba.dict.utf8", "./dict/hmm_model.utf8"); | ||
// 第三个参数是分词的粒度阈值,当词长大于3时,会进行细粒度的再切割,不填时默认阈值是4。 | ||
segment.queryLoadDict("./dict/jieba.dict.utf8", "./dict/hmm_model.utf8", 3); | ||
console.log("非阻塞的:"); | ||
@@ -4,0 +5,0 @@ segment.queryCut("小明硕士毕业于中国科学院计算所,后在日本京都大学深造", function(tl){ |
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
5698029
27