diff --git a/python/examples/senta/README.md b/python/examples/senta/README.md index 66dbc073a9c3b66be534db69a3db4cba4157728a..307f4829407b2fb03b64035c94ac00c3d55c27f5 100644 --- a/python/examples/senta/README.md +++ b/python/examples/senta/README.md @@ -8,7 +8,7 @@ sh get_data.sh ``` python senta_web_service.py senta_bilstm_model/ workdir 9292 ``` -In the Chinese sentiment classification task, the Chinese word segmentation needs to be done through [LAC task] (../lac). Set model path by ```lac_model_path``` and dictionary path by ```lac_dict_path```. Please refer to [LAC task](../lac) documents to get these files. +In the Chinese sentiment classification task, the Chinese word segmentation needs to be done through [LAC task] (../lac). Set model path by ```lac_model_path``` and dictionary path by ```lac_dict_path```. In this demo, the LAC task is placed in the preprocessing part of the HTTP prediction service of the sentiment classification task. The LAC prediction service is deployed on the CPU, and the sentiment classification task is deployed on the GPU, which can be changed according to the actual situation. ## Client prediction ``` diff --git a/python/examples/senta/README_CN.md b/python/examples/senta/README_CN.md index 747548d4e1e5971be2bd5e453d5ffeb7333e2985..cd7cd8564242db8c30525978a4b806c866cd0d0f 100644 --- a/python/examples/senta/README_CN.md +++ b/python/examples/senta/README_CN.md @@ -8,7 +8,7 @@ sh get_data.sh ``` python senta_web_service.py senta_bilstm_model/ workdir 9292 ``` -中文情感分类任务中需要先通过[LAC任务](../lac)进行中文分词,在脚本中通过```lac_model_path```参数配置LAC任务的模型文件路径,```lac_dict_path```参数配置LAC任务词典路径。相关文件请参考[LAC任务](../lac)文档获取。 +中文情感分类任务中需要先通过[LAC任务](../lac)进行中文分词,在脚本中通过```lac_model_path```参数配置LAC任务的模型文件路径,```lac_dict_path```参数配置LAC任务词典路径。 示例中将LAC任务放在情感分类任务的HTTP预测服务的预处理部分,LAC预测服务部署在CPU上,情感分类任务部署在GPU上,可以根据实际情况进行更改。 ## 客户端预测