README.md 605 字节
Newer Older
J
Jiawei Wang 已提交
1 2 3 4
## Chinese Word Segmentation

([简体中文](./README_CN.md)|English)

M
MRXLT 已提交
5
### Get Model
J
Jiawei Wang 已提交
6
```
T
TeslaZhao 已提交
7
python3 -m paddle_serving_app.package --get_model lac
M
MRXLT 已提交
8
tar -xzvf lac.tar.gz
J
Jiawei Wang 已提交
9 10
```

H
HexToString 已提交
11
#### Start inference service(Support BRPC-Client/GRPC-Client/Http-Client)
J
Jiawei Wang 已提交
12 13

```
T
TeslaZhao 已提交
14
python3 -m paddle_serving_server.serve --model lac_model/ --port 9292
J
Jiawei Wang 已提交
15
```
H
HexToString 已提交
16
### BRPC Infer
J
Jiawei Wang 已提交
17
```
T
TeslaZhao 已提交
18
echo "我爱北京天安门" | python3 lac_client.py lac_client/serving_client_conf.prototxt
J
Jiawei Wang 已提交
19 20
```

M
MRXLT 已提交
21
It will get the segmentation result. 
J
Jiawei Wang 已提交
22

H
HexToString 已提交
23
### GRPC/Http Infer
J
Jiawei Wang 已提交
24
```
T
TeslaZhao 已提交
25
echo "我爱北京天安门" | python3 lac_http_client.py lac_client/serving_client_conf.prototxt
J
Jiawei Wang 已提交
26
```