ant1Interface-0.0.6
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ant1Interface-0.0.6 |
| نام | ant1Interface |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | wangyongqing.wyq |
| ایمیل نویسنده | wangyongqing.wyq@antgroup.com |
| آدرس صفحه اصلی | https://code.alipay.com/ai-dls/antnlp/blob/master/adabrain/common/interface/ant1/README.md |
| آدرس اینترنتی | https://pypi.org/project/ant1Interface/ |
| مجوز | Copyright 2022 Ant Group Co., Ltd. |
前言:
这个代码库主要是用来实现引擎调用算法模型时,输入输出接口的解析。bot中相应的接口定义详见https://yuque.antfin.com/crtpg4/dp5u2i/ciww6f#qNMmC
两种import方式:
1. 如果使用antnlp,参考antnlp/adabrain/common/interface/ant1/demo.py
2. 如果不使用antnlp, 直接安装pypi包,pip install -i https://test.pypi.org/simple/ ant1
在代码里面引入包 import ant1
引入具体包 from ant1 import decoder
务必在函数每次被调用的时候,进行初始化
decode_builder = decoder.DecoderParamsBuilder(input_proto_type=INPUT_PROTO_TYPE)
组件内的解析函数定义使用详见antnlp/adabrain/common/interface/ant1/docs
نحوه نصب
نصب پکیج whl ant1Interface-0.0.6:
pip install ant1Interface-0.0.6.whl
نصب پکیج tar.gz ant1Interface-0.0.6:
pip install ant1Interface-0.0.6.tar.gz