语句解析,返回 json 结果

HTTP 方法:

GET

请求 URL:

/product/parse/json

请求参数说明

URL 参数:

参数类型是否必需默认值说明
pidStringskill id 或 app id
sentenceString输入语句
entity仅解析 entity
partial是否部分解析
name指定 intent name
property指定 property

请求示例代码

http://server/product/parse/json?pid=ff8081816d69aa64016d69aac7e20001&sentence=北京明天天气怎么样

响应示例

[{
"score": 0,
"start": 0,
"name": "forecast",
"end": 9,
"id": "5c8becb7287e6a15e893bcb9",
"properties": {
"city": [[
"0",
"北京",
"北京",
"中国",
"亚洲"
]],
"value": [[
"0",
"北京",
"北京",
"中国",
"亚洲"
]]
}
}]

响应参数说明

参数类型说明
scoreInt
startInt
nameString
endInt
idString
propertiesDictinclude city and value