Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodejieba

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejieba - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

ChangeLog.md

@@ -0,1 +1,5 @@

## v0.2.2
* 在queryLoadDict 函数中增加query模式的粒度阈值作为可选参数。
## v0.2.1

@@ -2,0 +6,0 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc