Skip to content

Commit

Permalink
[demo] using nodejieba-demo instead of test/demo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyiwu committed Aug 15, 2024
1 parent a297a68 commit 8d6493d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 46 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ console.log(result);
//["南京市","长江大桥"]
```

更详细的其他用法请看 [demo](https://github.com/yanyiwu/nodejieba-demo)
More Detals in [demo](https://github.com/yanyiwu/nodejieba-demo)

### 词典载入可灵活配置

Expand Down Expand Up @@ -105,7 +105,7 @@ console.log(nodejieba.tag("红掌拨清波"));
// { word: '清波', tag: 'n' } ]
```

更详细的其他用法请看 [test/demo.js](test/demo.js)
More Detals in [demo](https://github.com/yanyiwu/nodejieba-demo)

### 关键词抽取

Expand All @@ -126,7 +126,7 @@ console.log(nodejieba.textRankExtract("升职加薪,当上CEO,走上人生
// { word: '升职', weight: 0.9802777682279076 } ]
```

更详细的其他用法请看 [test/demo.js](test/demo.js)
More Detals in [demo](https://github.com/yanyiwu/nodejieba-demo)

## Supported Node.js Versions

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typescript": "^3.0.1"
},
"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": "node test/load_dict_demo.js && 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",
"rebuild": "node-pre-gyp rebuild"
},
Expand Down
42 changes: 0 additions & 42 deletions test/demo.js

This file was deleted.

0 comments on commit 8d6493d

Please sign in to comment.