GET
/product/parse/json
参数 | 类型 | 是否必需 | 默认值 | 说明 |
---|---|---|---|---|
pid | String | 是 | skill id 或 app id | |
sentence | String | 否 | 输入语句 | |
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","北京","北京","中国","亚洲"]]}}]
参数 | 类型 | 说明 |
---|---|---|
score | Int | |
start | Int | |
name | String | |
end | Int | |
id | String | |
properties | Dict | include city and value |