未验证 提交 1108f821 编写于 作者: D Daniel Yang 提交者: GitHub

Update README_ch.md

上级 ab3805b4
...@@ -143,6 +143,9 @@ test_text = ["今天是个好天气。"] ...@@ -143,6 +143,9 @@ test_text = ["今天是个好天气。"]
results = lac.cut(text=test_text, use_gpu=False, batch_size=1, return_tag=True) results = lac.cut(text=test_text, use_gpu=False, batch_size=1, return_tag=True)
print(results) print(results)
#{'word': ['今天', '是', '个', '好天气', '。'], 'tag': ['TIME', 'v', 'q', 'n', 'w']} #{'word': ['今天', '是', '个', '好天气', '。'], 'tag': ['TIME', 'v', 'q', 'n', 'w']}
# 一行代码启动serving 服务,更多模型搜索可参考 https://www.paddlepaddle.org.cn/hublist
hub serving start -m lac
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册