Skip to content
foxueyuan edited this page Mar 22, 2018 · 3 revisions

接口定义


  • 请求方式:

POST(**HTTP**)

  • 请求地址:

http://server.localdomain/es/query

  • Header:
参数 是否必须
Content-Type application/json
  • 请求参数:
参数 是否必须 类型 说明
intents array 检索(意图、特征词)关键字列表
slots array 词槽列表
domain string 领域名

返回示例:

{
   "errcode" : 0,
   "errmsg" : "ok",
   "data" : [
        {
            "content" : "",
            "confidence" : 0.9
        },
        {
            "content" : "",
            "confidence" : 0.8
        },
        {
            "content" : "",
            "confidence" : 0.7
        }
    ]
}
  • 返回参数:
参数 是否必须 类型 说明
errcode int 有结果返回0,非0则没有结果返回
errmsg string errcode为0时返回ok,其他情况返回异常信息
data array errcode为0时返回查询结果
  • data说明:
参数 是否必须 类型 说明
content string 返回结果
confidence float 结果置信度

Clone this wiki locally