nlu 分析
所有文档
menu
没有找到结果,请重新输入

客悦智能客服企业版

nlu 分析

1、接口地址:GET {IP}:{PORT}/open/v{versionId}/nlu

2、入参(query param中)

参数名 类型 是否可空 备注
query string 请求文本

3、返回值

参数名 类型 父节点 备注
code int HTTP状态码
time long 时间
msg string 状态信息
data T
nluQuery string data 处理过的 nlu 请求文本
sensitiveWords list< string> data 敏感词列表
attitude map<string, object> list 态度
prob float attitude 置信度
name string attitude 态度英文名
nameZh string attitude 态度中文名
intents list< map< string, object>> data 意图
id string intents
name string intents 意图名称
nameZh string intents 意图中文名
confidence double intents 置信度
source string intents 来源 :template 意图模板
knn 意图示例
aicp || ensemble 意图模型
industry 内置行业模型
clarifyIntents list< map< string, object>> data 澄清意图【格式字段同intents】
sentiment map< string, object> data 情感
prob float sentiment 置信度
source string sentiment 来源
name string sentiment 情感英文名
nameZh string sentiment 情感中文名
entities map< string, object> data 识别到的实体 【具体可以参照表格下方示例】
xxxx string entities 实体英文名【不固定】
name string entities 实体Id
entryId string entities 实体值id
value string entities 实体值
original string entities 原始值
name string entities 实体英文名【页面显示为实体ID】
nameZh string entities 实体中文名
offset string entities 标志位
system boolean entities 是否是系统实体
combineValue string entities 组合值【复合实体用】
extra map<string, object> entities 实体额外属性信息
clarifyEntities map<string, object> data 澄清实体【与entities 互斥,两者不会同时存在】
xxxx string clarifyEntities 实体英文名【名称不固定】
name string clarifyEntities 实体英文名
type int clarifyEntities 实体类型,1 : 系统实体;2 : 规则实体;3:复合实体
candidateList list< string> clarifyEntities 候选值列表
nluEntityClarifyList list< map < string, object>> data 澄清实体【与entities 互斥,两者不会同时存在】
entityId string nluEntityClarifyList 实体Id
entryId string nluEntityClarifyList 实体值id
value string nluEntityClarifyList 实体值
original string nluEntityClarifyList 原始值
name string nluEntityClarifyList 实体英文名【页面显示为实体ID】
nameZh string nluEntityClarifyList 实体中文名
offset string nluEntityClarifyList 标志位
system boolean nluEntityClarifyList 是否是系统实体
combineValue string nluEntityClarifyList 组合值【复合实体用】
extra map<string, object> nluEntityClarifyList 实体额外属性信息
entityAutoFillVoMap map<string, object> data 复合实体填充字段

示例:

{
    "time":1590398524411,
    "data":{
        "rawQuery":"我是中国人",
        "nluQuery":"我是中国人",
        "sensitiveWords":[

        ],
        "attitude":null,
        "intents":[

        ],
        "clarifyIntents":[

        ],
        "sentiment":{
            "prob":0.9999964,
            "source":"model",
            "name":"neutral",
            "nameZh":"中立"
        },
        "clarifyEntities":{
            "sys_location":{
                "name":"sys_location",
                "type":1,
                "candidateList":[
                    "北京市朝阳区",
                    "吉林省长春市朝阳区"
                ]
            }
        },
        "nluEntityClarifyList":[
            {
                "entityId":null,
                "entryId":null,
                "value":"吉林省长春市朝阳区",
                "original":"朝阳区",
                "name":"sys_location",
                "nameZh":"地点实体",
                "offset":0,
                "system":true,
                "type":0,
                "combineValue":null,
                "extra":{
                    "area":"朝阳区",
                    "country":"中国",
                    "province":"吉林省",
                    "city":"长春市",
                    "isUnique":true,
                    "location":"吉林省长春市朝阳区",
                    "type":"区",
                    "list":[
                        {
                            "country":"中国",
                            "province":"吉林省",
                            "city":"长春市",
                            "area":"朝阳区",
                            "reserved":false
                        }
                    ]
                }
            }
        ]
    },
    "code":200,
    "msg":"OK"
}
上一篇
Query 联想推荐相关接口
下一篇
关键词提取