Text Classification
Transformers
Laya
English
multilingual
typed-decisions
non-autoregressive
axera
ax650
Instructions to use AXERA-TECH/Laya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXERA-TECH/Laya with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AXERA-TECH/Laya")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AXERA-TECH/Laya", device_map="auto") - Laya
How to use AXERA-TECH/Laya with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download multilingual/sample_request.json from AXERA-TECH/Laya: direct link, hf CLI and curl.
- Browser
- Download file 971 Bytes
-
https://huggingface.co/AXERA-TECH/Laya/resolve/main/multilingual/sample_request.json
- Command line
-
hf download hf://AXERA-TECH/Laya/multilingual/sample_request.json
-
curl -L -o sample_request.json https://huggingface.co/AXERA-TECH/Laya/resolve/main/multilingual/sample_request.json
971 Bytes
| { | |
| "state": { | |
| "body": "发票4411重复扣款,请今天退还多扣的金额,否则我们会取消服务。" | |
| }, | |
| "questions": { | |
| "department": { | |
| "type": "choice", | |
| "instructions": "这条请求应由哪个团队处理?", | |
| "criteria": { | |
| "billing": "扣款、发票、账单与退款", | |
| "technical": "故障、接口、登录与系统错误", | |
| "sales": "价格、演示、合同与采购", | |
| "other": "一般咨询或已解决问题" | |
| } | |
| }, | |
| "urgency": { | |
| "type": "score", | |
| "instructions": "这条请求有多紧急?", | |
| "criteria": [ | |
| "常规事项,没有截止时间", | |
| "需要尽快处理", | |
| "服务中断或今天必须解决" | |
| ] | |
| }, | |
| "refund": { | |
| "type": "noul", | |
| "instructions": "用户是否明确要求退款?" | |
| }, | |
| "churn": { | |
| "type": "noul", | |
| "instructions": "用户是否表示要取消或离开?" | |
| } | |
| } | |
| } | |