Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
huolongshe b1147e113c | 2 months ago | |
---|---|---|
app | 1 year ago | |
docs | 1 year ago | |
webapp | 1 year ago | |
.gitignore | 2 years ago | |
Dockerfile | 1 year ago | |
LICENSE | 2 years ago | |
README.md | 2 months ago | |
application.yml | 5 months ago | |
build-docker.sh | 1 year ago | |
pack_model.py | 1 year ago | |
pip-install-reqs.sh | 1 year ago | |
requirements.txt | 8 months ago | |
run_model_server.py | 1 year ago |
把一句话中的汉字转换成汉语拼音。可以选择带声调或不带声调。词语自动根据上下文来识别多音字。可以选择列出多音字的多种发音。
本模型改编自GitHub开源项目: https://github.com/mozillazg/python-pinyin
本模型基于 ServiceBoot微服务引擎 进行服务化封装,参见: 《CubeAI模型开发指南》
$ sh pip-install-reqs.sh
$ serviceboot start
或
$ python3 run_model_server.py
一键式本地容器化部署和运行,参见: 《CubeAI模型独立部署指南》 或 CubeAI Docker Builder
本模型服务可一键发布至 CubeAI智立方平台 进行共享和部署,参见: 《CubeAI模型发布指南》
本模型定义了1个API接口:
API接口1:
API端点: /api/data
HTTP方法: POST
HTTP请求体:
{
"action": "predict"
"args": {
"hanzi": <待转换的汉字字符串>,
"split": <分隔符>,
"style": <显示风格>,
"multi": <是否列出多个发音>
}
}
其中:style为0-9的整数,0表示不显示音调,1表示显示音调;multi为整数,0表示只列出多音字一个发音,非0表示列出多音字的所有发音。
HTTP响应体:
{
"status": "ok"|"err",
"value": <转换后用分隔符分割开的拼音字符串>
}
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》