未验证 提交 dcb48468 编写于 作者: D Dong Daxiang 提交者: GitHub

Update README.md

上级 6972136b
...@@ -95,22 +95,22 @@ print(fetch_map) ...@@ -95,22 +95,22 @@ print(fetch_map)
<h3 align="center">Chinese Word Segmentation</h4> <h3 align="center">Chinese Word Segmentation</h4>
- Description: Chinese word segmentation service that can be deployed with one line command. - **Description**: Chinese word segmentation HTTP service that can be deployed with one line command.
- Download: - **Download**:
``` shell ``` shell
wget --no-check-certificate https://paddle-serving.bj.bcebos.com/lac/lac_model_jieba_web.tar.gz wget --no-check-certificate https://paddle-serving.bj.bcebos.com/lac/lac_model_jieba_web.tar.gz
``` ```
- Host web service: - **Host web service**:
``` shell ``` shell
tar -xzf lac_model_jieba_web.tar.gz tar -xzf lac_model_jieba_web.tar.gz
python lac_web_service.py jieba_server_model/ lac_workdir 9292 python lac_web_service.py jieba_server_model/ lac_workdir 9292
``` ```
- Request sample: - **Request sample**:
``` shell ``` shell
curl -H "Content-Type:application/json" -X POST -d '{"words": "我爱北京天安门", "fetch":["crf_decode"]}' http://127.0.0.1:9292/lac/prediction curl -H "Content-Type:application/json" -X POST -d '{"words": "我爱北京天安门", "fetch":["crf_decode"]}' http://127.0.0.1:9292/lac/prediction
``` ```
- Request result: - **Request result**:
``` shell ``` shell
{"word_seg":"我|爱|北京|天安门"} {"word_seg":"我|爱|北京|天安门"}
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册