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 2.5.1 to 2.5.2

LICENSE

4

ChangeLog.md
# NodeJieba ChangeLog
## v2.5.2
+ Merged [pull request 193](https://github.com/yanyiwu/nodejieba/pull/193)
## v2.5.1

@@ -4,0 +8,0 @@

2

index.js

@@ -1,2 +0,2 @@

var binary = require('node-pre-gyp');
var binary = require('@mapbox/node-pre-gyp');
var path = require('path');

@@ -3,0 +3,0 @@ var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json')));

{
"name": "nodejieba",
"description": "chinese word segmentation for node",
"version": "2.5.1",
"version": "2.5.2",
"author": "Yanyi Wu <i@yanyiwu.com>",

@@ -27,4 +27,4 @@ "maintainers": [

"dependencies": {
"node-addon-api": "^3.0.2",
"node-pre-gyp": "^0.14.0"
"@mapbox/node-pre-gyp": "^1.0.4",
"node-addon-api": "^3.0.2"
},

@@ -31,0 +31,0 @@ "devDependencies": {

[![Build Status](https://travis-ci.org/yanyiwu/nodejieba.png?branch=master)](https://travis-ci.org/yanyiwu/nodejieba)
[![Author](https://img.shields.io/badge/author-@yanyiwu-blue.svg?style=flat)](http://yanyiwu.com/)
[![Financial Contributors on Open Collective](https://opencollective.com/nodejieba/all/badge.svg?label=financial+contributors)](https://opencollective.com/nodejieba) [![Author](https://img.shields.io/badge/author-@yanyiwu-blue.svg?style=flat)](http://yanyiwu.com/)
[![Donate](https://img.shields.io/badge/donate-eos_gitdeveloper-orange.svg)](https://eosflare.io/account/gitdeveloper)
[![Platform](https://img.shields.io/badge/platform-Linux,%20OS%20X,%20Windows-green.svg?style=flat)](https://github.com/yanyiwu/nodejieba)
[![Performance](https://img.shields.io/badge/performance-excellent-brightgreen.svg?style=flat)](http://yanyiwu.com/work/2015/06/14/jieba-series-performance-test.html)
[![License](https://img.shields.io/badge/license-MIT-yellow.svg?style=flat)](http://yanyiwu.mit-license.org)
[![Dependency Status](https://david-dm.org/yanyiwu/nodejieba.png?theme=shields.io)](https://david-dm.org/yanyiwu/nodejieba)
[![devDependency Status](https://david-dm.org/yanyiwu/nodejieba/dev-status.png?theme=shields.io)](https://david-dm.org/yanyiwu/nodejieba#info=devDependencies)
[![NpmDownload Status](http://img.shields.io/npm/dm/nodejieba.svg)](https://www.npmjs.org/package/nodejieba)
[![NPM Version](https://img.shields.io/npm/v/nodejieba.svg?style=flat)](https://www.npmjs.org/package/nodejieba)
[![Code Climate](https://codeclimate.com/github/yanyiwu/nodejieba/badges/gpa.svg)](https://codeclimate.com/github/yanyiwu/nodejieba)
[![Coverage Status](https://coveralls.io/repos/yanyiwu/nodejieba/badge.svg?branch=master&service=github)](https://coveralls.io/github/yanyiwu/nodejieba?branch=master)
- - -

@@ -14,7 +15,9 @@

[![logo](http://images.yanyiwu.com/NodeJiebaLogo-v1.png)](https://github.com/yanyiwu/nodejieba)
## Introduction
The Jieba Chinese Word Segmentation Implemented By Node.js .
`NodeJieba` provides chinese word segmentation for Node.js based on [CppJieba].
## Download
## Install

@@ -28,3 +31,3 @@ ```sh

```sh
npm --registry=http://r.cnpmjs.org install nodejieba
npm install nodejieba --registry=https://registry.npm.taobao.org --nodejieba_binary_host_mirror=https://npm.taobao.org/mirrors/nodejieba
```

@@ -43,2 +46,34 @@

### Initialization
Initialization is optional and will be executed once `cut` is called with the default dictionaries.
Loading the default dictionaries can be called explicitly by
```js
nodejieba.load();
```
This is similar to the internal call of
```js
nodejieba.load({
dict: './dict/jieba.dict.utf8',
hmmDict: './dict/hmm_model.utf8',
userDict: './dict/userdict.utf8',
idfDict: './dict/idf.utf8',
stopWordDict: './dict/stop_words.utf8',
});
```
If a dictionary parameter is missing, its default value will be uesd.
#### Dictionary description
+ dict: the main dictionary with weight and lexical tags, it's recommended to use the default dictionary
+ hmmDict: hidden markov model, it's recommended to use the default dictionary
+ userDict: user dictionary, it's recommended to modify it to your use case
+ idfDict: idf information for keyword extraction
+ stopWordDict: list of stop words for keyword extraction
### POS Tagging

@@ -58,3 +93,3 @@

```
```js
var nodejieba = require("nodejieba");

@@ -75,9 +110,8 @@ var topN = 4;

+ `node v0.10.2`
+ `node v0.12.1`
+ `iojs v1.3.0`
+ `iojs v2.2.1`
+ `node v4.0.0`
+ `node v10`
+ `node v12`
+ `node v14`
+ `node v15`
## Cases
## Use Cases

@@ -87,5 +121,9 @@ + [gitbook-plugin-search-pro]

## Similar projects
+ [@node-rs/jieba](https://github.com/Brooooooklyn/node-rs/tree/master/packages/jieba)
## Performance
It is supposed to be the best in the angle of high performance, because its basic foundation is powered by C++.
It is supposed to have the best performance out of all available Node.js modules. There is a post available in mandarin [Jieba中文分词系列性能评测].

@@ -100,14 +138,3 @@ ## Online Demo

Email: `i@yanyiwu.com`
QQ: 64162451
![image](http://7viirv.com1.z0.glb.clouddn.com/5a7d1b5c0d_yanyiwu_personal_qrcodes.jpg)
## Licens
MIT http://yanyiwu.mit-license.org
## Thanks
- [Jieba]
## Author

@@ -129,1 +156,31 @@

[pinyin]:https://github.com/hotoo/pinyin
## Contributors
### Code Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/yanyiwu/nodejieba/graphs/contributors"><img src="https://opencollective.com/nodejieba/contributors.svg?width=890&button=false" /></a>
### Financial Contributors
Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/nodejieba/contribute)]
#### Individuals
<a href="https://opencollective.com/nodejieba"><img src="https://opencollective.com/nodejieba/individuals.svg?width=890"></a>
#### Organizations
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/nodejieba/contribute)]
<a href="https://opencollective.com/nodejieba/organization/0/website"><img src="https://opencollective.com/nodejieba/organization/0/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/1/website"><img src="https://opencollective.com/nodejieba/organization/1/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/2/website"><img src="https://opencollective.com/nodejieba/organization/2/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/3/website"><img src="https://opencollective.com/nodejieba/organization/3/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/4/website"><img src="https://opencollective.com/nodejieba/organization/4/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/5/website"><img src="https://opencollective.com/nodejieba/organization/5/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/6/website"><img src="https://opencollective.com/nodejieba/organization/6/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/7/website"><img src="https://opencollective.com/nodejieba/organization/7/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/8/website"><img src="https://opencollective.com/nodejieba/organization/8/avatar.svg"></a>
<a href="https://opencollective.com/nodejieba/organization/9/website"><img src="https://opencollective.com/nodejieba/organization/9/avatar.svg"></a>

@@ -44,3 +44,3 @@ [![Build Status](https://travis-ci.org/yanyiwu/nodejieba.png?branch=master)](https://travis-ci.org/yanyiwu/nodejieba)

```sh
npm --registry=http://r.cnpmjs.org install nodejieba
npm install nodejieba --registry=https://registry.npm.taobao.org --nodejieba_binary_host_mirror=https://npm.taobao.org/mirrors/nodejieba
```

@@ -66,3 +66,3 @@

```
```js
nodejieba.load();

@@ -75,3 +75,3 @@ ```

```
```js
nodejieba.load({

@@ -86,3 +86,3 @@ userDict: './test/testdata/userdict.utf8',

```
```js
nodejieba.load({

@@ -97,3 +97,3 @@ dict: nodejieba.DEFAULT_DICT,

【词典说明】
#### 词典说明

@@ -120,3 +120,3 @@ + dict: 主词典,带权重和词性标签,建议使用默认词典。

```
```js
var nodejieba = require("nodejieba");

@@ -137,8 +137,6 @@ var topN = 4;

+ `node v0.10.2`
+ `node v0.12.1`
+ `iojs v1.3.0`
+ `iojs v2.2.1`
+ `node v4.0.0`
+ `node v5.7.0`
+ `node v10`
+ `node v12`
+ `node v14`
+ `node v15`

@@ -192,5 +190,2 @@ ## 应用

## Contributors

@@ -197,0 +192,0 @@

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