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

nodejieba

Package Overview
Dependencies
Maintainers
2
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 3.1.1 to 3.2.0

.gitmodules

4

ChangeLog.md
# NodeJieba ChangeLog
## v3.2.0
+ [submodule] rm dict and deps, use submodules/cppjieba instead
## v3.1.1

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

12

index.js

@@ -8,8 +8,10 @@ var binary = require('@mapbox/node-pre-gyp');

DICT_DIR = __dirname + "/submodules/cppjieba/dict/";
var exports ={
DEFAULT_DICT: __dirname + "/dict/jieba.dict.utf8",
DEFAULT_HMM_DICT: __dirname + "/dict/hmm_model.utf8",
DEFAULT_USER_DICT: __dirname + "/dict/user.dict.utf8",
DEFAULT_IDF_DICT: __dirname + "/dict/idf.utf8",
DEFAULT_STOP_WORD_DICT: __dirname + "/dict/stop_words.utf8",
DEFAULT_DICT: DICT_DIR + "jieba.dict.utf8",
DEFAULT_HMM_DICT: DICT_DIR + "hmm_model.utf8",
DEFAULT_USER_DICT: DICT_DIR + "user.dict.utf8",
DEFAULT_IDF_DICT: DICT_DIR + "idf.utf8",
DEFAULT_STOP_WORD_DICT: DICT_DIR + "stop_words.utf8",

@@ -16,0 +18,0 @@ load: function (dictJson) {

{
"name": "nodejieba",
"description": "chinese word segmentation for node",
"version": "3.1.1",
"version": "3.2.0",
"author": "Yanyi Wu <wuyanyi09@foxmail.com>",

@@ -6,0 +6,0 @@ "maintainers": [

@@ -140,3 +140,3 @@ [![Build Status](https://github.com/yanyiwu/nodejieba/actions/workflows/test.yml/badge.svg)](https://github.com/yanyiwu/nodejieba/actions/workflows/test.yml)

## Development
## Development(Using NodeJieba Library in your own project)

@@ -163,2 +163,11 @@ create repo:

## Develop NodeJieba
```sh
git clone --recurse-submodules https://github.com/yanyiwu/nodejieba.git
cd nodejieba
npm install
npm test
```
## 应用

@@ -165,0 +174,0 @@

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

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