Comparing version 3.1.1 to 3.2.0
# 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
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
23339461
223
562
247