Comparing version 3.4.0 to 3.4.1
# CHANGELOG | ||
## v3.4.1 | ||
+ [demo] using nodejieba-demo instead of test/demo.js | ||
+ git submodule update --remote to upgrade cppjieba from v5.1.2 to v5.1.3 | ||
## v3.4.0 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "nodejieba", | ||
"description": "chinese word segmentation for node", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"author": "Yanyi Wu <wuyanyi09@foxmail.com>", | ||
@@ -39,3 +39,3 @@ "maintainers": [ | ||
"scripts": { | ||
"test": "node test/demo.js && node test/load_dict_demo.js && mocha --timeout 10s -R spec test/test.js && mocha --timeout 10s -R spec test/load_dict_test.js", | ||
"test": "mocha --timeout 10s -R spec test/test.js && mocha --timeout 10s -R spec test/load_dict_test.js", | ||
"install": "node-pre-gyp install --fallback-to-build", | ||
@@ -42,0 +42,0 @@ "rebuild": "node-pre-gyp rebuild" |
[![Build Status](https://github.com/yanyiwu/nodejieba/actions/workflows/test.yml/badge.svg)](https://github.com/yanyiwu/nodejieba/actions/workflows/test.yml) | ||
[![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)](https://github.com/yanyiwu/) | ||
[![Platform](https://img.shields.io/badge/platform-Linux,%20OS%20X,%20Windows-green.svg?style=flat)](https://github.com/yanyiwu/nodejieba) | ||
[![Platform](https://img.shields.io/badge/platform-Linux,macOS,Windows-green.svg?style=flat)](https://github.com/yanyiwu/nodejieba) | ||
[![Performance](https://img.shields.io/badge/performance-excellent-brightgreen.svg?style=flat)](https://github.com/yanyiwu/blog/blob/posts2023archive/_posts/2015-06-14-jieba-series-performance-test.md) | ||
@@ -9,3 +9,2 @@ [![License](https://img.shields.io/badge/license-MIT-yellow.svg?style=flat)](http://yanyiwu.mit-license.org) | ||
[![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) | ||
- - - | ||
@@ -39,8 +38,2 @@ | ||
因为`npm`速度很慢而且经常因为墙的原因出现莫名其妙的问题,可以试试使用[cnpm],命令如下: | ||
```sh | ||
npm install nodejieba --registry=https://registry.npm.taobao.org --nodejieba_binary_host_mirror=https://npm.taobao.org/mirrors/nodejieba | ||
``` | ||
## 用法 | ||
@@ -55,3 +48,3 @@ | ||
更详细的其他用法请看 [test/demo.js](test/demo.js) | ||
More Detals in [demo](https://github.com/yanyiwu/nodejieba-demo) | ||
@@ -111,3 +104,3 @@ ### 词典载入可灵活配置 | ||
更详细的其他用法请看 [test/demo.js](test/demo.js) | ||
More Detals in [demo](https://github.com/yanyiwu/nodejieba-demo) | ||
@@ -133,34 +126,4 @@ ### 关键词抽取 | ||
更详细的其他用法请看 [test/demo.js](test/demo.js) | ||
More Detals in [demo](https://github.com/yanyiwu/nodejieba-demo) | ||
## Supported Node.js Versions | ||
+ `node v12` | ||
+ `node v14` | ||
+ `node v16` | ||
+ `node v18` | ||
+ `node v20` | ||
## Development(Using NodeJieba Library in your own project) | ||
create repo: | ||
``` | ||
mkdir node_npm_test | ||
cd node_npm_test | ||
npm init | ||
npm install nodejieba | ||
``` | ||
create your `test.js` | ||
``` | ||
var nodejieba = require("nodejieba") | ||
console.log(nodejieba.cut("你好世界")) | ||
``` | ||
``` | ||
node test.js | ||
``` | ||
## Develop NodeJieba | ||
@@ -180,6 +143,2 @@ | ||
## 相关项目 | ||
+ [@node-rs/jieba](https://github.com/Brooooooklyn/node-rs/tree/master/packages/jieba) | ||
## 性能评测 | ||
@@ -186,0 +145,0 @@ |
@@ -1,3 +0,7 @@ | ||
# CppJieba ChangeLog | ||
# ChangeLog | ||
## v5.1.3 | ||
+ [googletest] git submodule add googletest-1.6.0 | ||
## v5.1.2 | ||
@@ -4,0 +8,0 @@ |
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) | ||
SET(GTEST_ROOT_DIR googletest) | ||
INCLUDE_DIRECTORIES(${GTEST_ROOT_DIR} ${GTEST_ROOT_DIR}/include) | ||
ADD_DEFINITIONS(-DGTEST_USE_OWN_TR1_TUPLE=1) | ||
ADD_LIBRARY(gtest STATIC ${GTEST_ROOT_DIR}/src/gtest-all.cc) | ||
TARGET_LINK_LIBRARIES(gtest pthread) | ||
ADD_EXECUTABLE(demo demo.cpp) | ||
ADD_EXECUTABLE(load_test load_test.cpp) | ||
ADD_SUBDIRECTORY(unittest) |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
24572251
344
1
505
185