libchai 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,20 +16,20 @@
16
16
  命令行程序基本的用法为:
17
17
 
18
18
  ```bash
19
- ./chai [命令] -c [方案文件] -e [词信息文件]
19
+ ./chai [命令] [方案文件] -e [词信息文件]
20
20
  ```
21
21
 
22
- `chai` 支持三个不同的命令:`encode` 和 `optimize`:
22
+ `chai` 支持三个不同的命令:`encode`、`optimize` 和 `server`:
23
23
 
24
24
  - `encode`:使用方案文件和拆分表计算出字词编码并统计各类评测指标
25
25
  - `optimize`:基于拆分表和方案文件中的配置优化元素布局
26
- - `server`: 启动 Web 服务
26
+ - `server`:启动 Web 服务
27
27
 
28
28
  例如,您可以运行
29
29
 
30
30
  ```bash
31
- ./chai encode -c examples/米十五笔.yaml -e examples/米十五笔.txt
32
- ./chai optimize -c examples/米十五笔.yaml -e examples/米十五笔.txt -t 4
31
+ ./chai encode examples/米十五笔.yaml -e examples/米十五笔.txt
32
+ ./chai optimize examples/米十五笔.yaml -e examples/米十五笔.txt -t 4
33
33
  ./chai server -p 12345
34
34
  ```
35
35
 
package/chai_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Songchen Tan <i@tansongchen.com>"
6
6
  ],
7
7
  "description": "汉字编码优化算法",
8
- "version": "0.3.3",
8
+ "version": "0.3.4",
9
9
  "license": "GPL-3.0",
10
10
  "repository": {
11
11
  "type": "git",