libchai 0.3.3 → 0.3.5
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 +5 -5
- package/chai_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
命令行程序基本的用法为:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
./chai [命令]
|
|
19
|
+
./chai [命令] [方案文件] -e [词信息文件]
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
`chai` 支持三个不同的命令:`encode` 和 `
|
|
22
|
+
`chai` 支持三个不同的命令:`encode`、`optimize` 和 `server`:
|
|
23
23
|
|
|
24
24
|
- `encode`:使用方案文件和拆分表计算出字词编码并统计各类评测指标
|
|
25
25
|
- `optimize`:基于拆分表和方案文件中的配置优化元素布局
|
|
26
|
-
- `server
|
|
26
|
+
- `server`:启动 Web 服务
|
|
27
27
|
|
|
28
28
|
例如,您可以运行
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
./chai encode
|
|
32
|
-
./chai optimize
|
|
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
|