资讯 社区 文档
技术能力
语音技术
文字识别
人脸与人体
图像技术
语言与知识
视频技术

各领域语义表示协议

各领域语义表示协议

天气

天气(weather)能支持对天气、温度、风速等属性的查询的解析。天气意图及词槽表示如下: 注:"/"表示多个示例值分割;"{}"表示词槽的归一值取值范围是封闭集合,在示例中全部列举。以下各领域皆同。

示例:

query:北京明天天气

    {
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "weather",
            "intent": "USER_WEATHER ",
            "score": 100,
            "slots": {
                "user_loc": [
                    {
                        "word": "北京",
                        "norm": "北京市"
                    }
                ],
                "user_time ": [
                    {
                        "word": "明天",
                        "norm": "2019-01-22"
                    }
                ]
            }
        }
    ],
    "parsed_text": "北京 明天 天气",
    "raw_text": "北京明天天气",
    "err_no": 0
}

query:明天几度

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "weather",
            "intent": "USER_TEMP",
            "score": 100,
            "slots": {
                "user_time ": [
                    {
                        "word": "明天",
                        "norm": "2019-01-22"
                    }
                ]
            }
        }
    ],
    "parsed_text": "明天 几 度",
    "raw_text": "明天几度",
    "err_no": 0
}

列车

列车(train)能够支持通用列车信息的查询解析,也可以解析对坐席、列车类别、票价等特殊查询请求的解析。列车意图及词槽表示如下:

示例:

query:北京西站到上海的高铁

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "train",
            "intent": "BOOK_TICKET",
            "score": 100,
            "slots": {
                "user_start_station": [
                    {
                        "word": "北京西站",
                        "norm": "北京西站"
                    }
                ],
                  "user_arrival_city": [
                    {
                        "word": "上海",
                        "norm": "上海市"
                    }
                ]
            }
        }
    ],
    "parsed_text": "北京 西站 到 上海 的 高铁",
    "raw_text": "北京西站到上海的高铁",
    "err_no": 0
}

query:北京西到无锡的动车几点发车

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "train",
            "intent": "START_TIME",
            "score": 100,
            "slots": {
                "user_start_station": [
                    {
                        "word": "北京西站",
                        "norm": "北京西站"
                    }
                ],
                  "user_arrival_city": [
                    {
                        "word": "上海",
                        "norm": "上海市"
                    }
                ],
                  "user_train_type": [
                    {
                        "word": "动车",
                        "norm": "动车"
                    }
                ]   
            }
        }
    ],
    "parsed_text": "北京 西 到 无锡 的 动车 几 点 发车",
    "raw_text": "北京西到无锡的动车几点发车",
    "err_no": 0
}

航班

航班(flight)支持基于航班类型、出发日期、航空公司、城市等的航班信息、机票信息的语义解析。航班意图及词槽表示如下:

示例:

query:明天从北京到上海的东航机票

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "flight",
            "intent": "BOOK_TICKET",
            "score": 100,
            "slots": {
                "user_start_time": [
                    {
                        "word": "明天",
                        "norm": "2019-01-22"
                    }
                ],
                 "user_start_city": [
                    {
                        "word": "北京",
                        "norm": "北京市"
                    }
                ],
                  "user_arrival_city": [
                    {
                        "word": "上海",
                        "norm": "上海市"
                    }
                ],
                  "user_company": [
                    {
                        "word": "东航",
                        "norm": "东航"
                    }
                ]   
            }
        }
    ],
    "parsed_text": "明天 从 北京 到 上海 的 东航 机票",
    "raw_text": "明天从北京到上海的东航机票",
    "err_no": 0
}

电话

电话(telephone)提供常用的拨打电话、通话记录查看等操作的语义解析。电话意图及词槽表示如下:

示例:

query:打电话给妈妈北京移动的号码

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " telephone ",
            "intent": "PHONE_CALL",
            "score": 100,
            "slots": {
                "user_call_target": [
                    {
                        "word": "妈妈",
                        "norm": "妈妈"
                    }
                ],
                 "user_phone_loc": [
                    {
                        "word": "北京",
                        "norm": "北京市"
                    }
                ],
                  "user_card_type": [
                    {
                        "word": "移动",
                        "norm": "移动"
                    }
                ]
            }
        }
    ],
    "parsed_text": "打电话 给 妈妈 北京 移动 的 号码",
    "raw_text": "打电话给妈妈北京移动的号码",
    "err_no": 0
}

query:打开未接来电

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " telephone",
            "intent": "VIEW_MISS_CALL",
            "score": 100,
            "slots": {
            }
        }
    ],
    "parsed_text": "打开 未 接 来电",
    "raw_text": "打开未接来电",
    "err_no": 0
}

订咖啡

订咖啡(coffee)提供咖啡预定等操作的语义解析。订咖啡意图及词槽表示如下:

示例:

query:给我来杯拿铁

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " coffee",
            "intent": "ORDERCOFFEE",
            "score": 100,
            "slots": {
                "user_coffee_type": [
                    {
                        "word": "拿铁",
                        "norm": "拿铁"
                    }
                ]
            }
        }
    ],
    "parsed_text": "给 我 来 杯 拿铁",
    "raw_text": "给我来杯拿铁",
    "err_no": 0
}

query:要两杯不加糖的摩卡

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " coffee",
            "intent": "ORDERCOFFEE",
            "score": 100,
            "slots": {
                "user_coffee_type": [
                    {
                        "word": "摩卡",
                        "norm": "摩卡"
                    }
                ],
                 "user_coffee_type": [
                    {
                        "word": "两杯",
                        "norm": "2.000000|杯"
                    }
                ],
                 " user_coffee_descript": [
                    {
                        "word": "不加糖",
                        "norm": "不加糖"
                    }
                ]
            }
        }
    ],
    "parsed_text": "要 两杯 不 加糖 的 摩卡",
    "raw_text": "要两杯不加糖的摩卡",
    "err_no": 0
}

电影播放

电影播放(movie)提供电影播放控制、电影信息查询、电影播放、搜索记录等的语义解析。电影播放意图及词槽表示如下:

示例:

query:我想看阿甘正传

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " movie",
            "intent": "MOVIE_INFO",
            "score": 100,
            "slots": {
                "user_movie_name": [
                    {
                        "word": "阿甘正传",
                        "norm": "阿甘正传"
                    }
                ]
            }
        }
    ],
    "parsed_text": "我 想 看 阿甘 正 传",
    "raw_text": "我想看阿甘正传",
    "err_no": 0
}

query:播放刘德华的电影

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " movie",
            "intent": "MOVIE_INFO",
            "score": 100,
            "slots": {
                "user_actor": [
                    {
                        "word": "刘德华",
                        "norm": "刘德华"
                    }
                ]
            }
        }
    ],
    "parsed_text": "播放 刘德华 的 电影",
    "raw_text": "播放刘德华的电影",
    "err_no": 0
}

页面屏幕控制

页面屏幕控制(screen_control)提供屏幕滚动、页面跳转、列表排序、列表选择操作的等语义解析。页面屏幕控制意图及词槽表示如下:

示例:

query:往上翻两页

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " screen_control",
            "intent": " SCROLL_CTRL",
            "score": 100,
            "slots": {
                "user_scroll_direction": [
                    {
                        "word": "上",
                        "norm": "上"
                    }
                ],
                 "user_scroll_index": [
                    {
                        "word": "两",
                        "norm": "2"
                    }
                ],
                 "user_scroll_unit": [
                    {
                        "word": "页",
                        "norm": "页"
                    }
                ],

            }
        }
    ],
    "parsed_text": "往上 翻 两 页",
    "raw_text": "往上翻两页",
    "err_no": 0
}

query:按时间排序

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " screen_control",
            "intent": "LIST_SORT_CON",
            "score": 100,
            "slots": {
                "user_sort_condition": [
                    {
                        "word": "时间",
                        "norm": "时间"
                    }
                ]
            }
        }
    ],
    "parsed_text": "按 时间 排序",
    "raw_text": "按时间排序",
    "err_no": 0
}

电视剧

电视剧(tv)提供基于电视剧属性的查询和泛查询的语义解析。电视剧意图及词槽表示如下:

示例:

query:我要看娘道第三集

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "tv",
            "intent": "TVINFO",
            "score": 100,
            "slots": {
                "user_tv_name": [
                    {
                        "word": "娘道",
                        "norm": "娘道"
                    }
                ],
                  "user_tv_episode": [
                    {
                        "word": "第三集",
                        "norm": "第3集"
                    }
                ]
            }
        }
    ],
    "parsed_text": "我要看娘道第三集",
    "raw_text": "我 要 看 娘道 第 三 集",
    "err_no": 0
}

query:最近有什么好看的电视剧

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "tv",
            "intent": "TVRANK",
            "score": 100,
            "slots": {
                "user_sortby": [
                    {
                        "word": "好看",
                        "norm": "好看的"
                    }
                ],
                  "user_tv_time": [
                    {
                        "word": "最近",
                        "norm": "新"
                    }
                ]
            }
        }
    ],
    "parsed_text": "最近 有 什么 好看 的 电视剧",
    "raw_text": "最近有什么好看的电视剧",
    "err_no": 0
}

外卖

外卖(takeaway)提供外卖购买、退订和基于店名、菜名、数量的点外卖等操作的语义解析。外卖意图及词槽表示如下:

示例:

query:来一份麦当劳的香辣鸡腿堡

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " takeaway ",
            "intent": " BOOK_TAKEOUT",
            "score": 100,
            "slots": {
                "user_food": [
                    {
                        "word": "香辣鸡腿堡",
                        "norm": "香辣鸡腿堡"
                    }
                ],
                  "user_num": [
                    {
                        "word": "一",
                        "norm": "1.000000"
                    }
                ],
                  "user_unit": [
                    {
                        "word": "份",
                        "norm": "份"
                    }
                ],
                  "user_shop": [
                    {
                        "word": "麦当劳",
                        "norm": "麦当劳"
                    }
                ]
            }
        }
    ],
    "parsed_text": "来 一 份 麦当劳 的 香辣 鸡腿 堡",
    "raw_text": "来一份麦当劳的香辣鸡腿堡",
    "err_no": 0
}

query:下单吧

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "takeaway",
            "intent": "BUY",
            "score": 100,
            "slots": {
            }
        }
    ],
    "parsed_text": "下单 吧",
    "raw_text": "下单吧",
    "err_no": 0
}

机器人控制

机器人控制(robot)提供机器人的行走、转动、动作、表情、拍照、音量控制、APP打开等操作的语义解析。百度机器人意图及词槽表示如下:

示例:

query:给我拍张照吧

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "robot",
            "intent": "ROBOT_TAKE_PHOTO",
            "score": 100,
            "slots": {
                "user_take_photo": [
                    {
                        "word": "拍张照",
                        "norm": "take_photo"
                    }
                ]
            }
        }
    ]
}

星座

星座(constell)提供星座时间、星座信息等的语义解析。星座意图及词槽表示如下:

示例:

query:金牛座的人是什么样的呢

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "constell",
            "intent": "CONSTELL_INFO",
            "score": 100,
            "slots": {
                "user_constell_name": [
                    {
                        "word": "金牛座",
                        "norm": "金牛"
                    }
                ]
            }
        }
    ],
    "parsed_text": "金牛座 的 人 是 什么样 的 呢",
    "raw_text": "金牛座的人是什么样的呢",
    "err_no": 0
}

query:金牛座的人生日是在几月

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "constell",
            "intent": "CONSTELL_TIME",
            "score": 100,
            "slots": {
                "user_constell_name": [
                    {
                        "word": "金牛座",
                        "norm": "金牛"
                    }
                ]
            }
        }
    ],
    "parsed_text":"金牛座 的 人 生日 是 在 几月",
    "raw_text":"金牛座的人生日是在几月",
    "err_no": 0
}

属相

属相(zodiac)提供查询属相出生时间、运势、年龄等相关问题的语义解析。属相意图及词槽表示如下:

示例:

query:牛年出生是哪年

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " zodiac",
            "intent": " BORN_TIME",
            "score": 100,
            "slots": {
                "user_zodiac_name": [
                    {
                        "word": "牛年",
                        "norm": "牛年"
                    }
                ]
            }
        }
    ],
    "parsed_text":"牛 年 出生 是 哪 年",
    "raw_text":"牛年出生是哪年",
    "err_no": 0
}

query:属虎的人本命佛是什么

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " zodiac",
            "intent": " FATE",
            "score": 100,
            "slots": {
                "user_zodiac_name": [
                    {
                        "word": "属虎",
                        "norm": "属虎"
                    }
                ]
            }
        }
    ],
    "parsed_text":"属 虎 的 人 本命佛 是 什么",
    "raw_text":"属虎的人本命佛是什么",
    "err_no": 0
}

摇号

摇号(yaohao)提供摇号申请、查询等操作的语音解析。摇号意图及词槽表示如下:

示例:

query:北京汽车摇号申请

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "yaohao",
            "intent": "PLATE_APPLY",
            "score": 100,
            "slots": {
                "user_city": [
                    {
                        "word": "北京",
                        "norm": "北京市"
                    }
                ],
                  "user_car_type": [
                    {
                        "word": "汽车",
                        "norm": "汽车"
                    }
                ]
            }
        }
    ],
    "parsed_text":"北京 汽车 摇号 申请",
    "raw_text":"北京汽车摇号申请",
    "err_no": 0
}

进制转换

进制转换(hexcalc)提供某一数字的二进制、八进制、十进制、十六进制之间的转换的语义解析。进制转换意图及词槽表示如下:

示例:

query:怎样将十进制110转换成十六进制的

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "hexcalc",
            "intent": "HEX_CONVERT",
            "score": 100,
            "slots": {
                "user_number": [
                    {
                        "word": "110",
                        "norm": "110"
                    }
                ],
                  "user_original_hex": [
                    {
                        "word": "十进制",
                        "norm": "10"
                    }
                ],
                 "user_target_hex": [
                    {
                        "word": "十六进制",
                        "norm": "16"
                    }
                ]
            }
        }
    ],
    "parsed_text":"怎样 将 十 进制 110 转换 成 十六 进制 的",
    "raw_text":"怎样将十进制110转换成十六进制的",
    "err_no": 0
}

时区查询

时区查询(time_zone)提供时区查询、时区差查询的语义解析。时区查询意图及词槽表示如下:

示例:

query:美国与北京的时区差多少

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "time_zone",
            "intent": "TIMEZONE_DIFF",
            "score": 100,
            "slots": {
                "user_loc": [
                    {
                        "word": "北京",
                        "norm": "北京市"
                    }
                ],
                  "user_loc": [
                    {
                        "word": "美国",
                        "norm": "美国"
                    }
                ]
            }
        }
    ],
    "parsed_text":"美国 与 北京 的 时区 差 多少",
    "raw_text":"美国与北京的时区差多少",
    "err_no": 0
}

query:美国的夏威夷在哪个时区

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "time_zone",
            "intent": "TIMEZONE_SEARCH",
            "score": 100,
            "slots": {
                  "user_loc": [
                    {
                        "word": "美国夏威夷",
                        "norm": "美国夏威夷"
                    }
                ]
            }
        }
    ],
    "parsed_text":"美国 的 夏威夷 在 哪个 时区",
    "raw_text":"美国的夏威夷在哪个时区",
    "err_no": 0
}

限行查询

限行查询(vehichle)提供各城市的限行号码及限行时间查询的语义解析。限行查询意图及词槽表示如下:

示例:

query:请问成都今天限号是多少

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "vehichle",
            "intent": "LIMIT_NUM",
            "score": 100,
            "slots": {
                  "user_city": [
                    {
                        "word": "成都",
                        "norm": "成都市"
                    }
                ]
            }
        }
    ],
    "parsed_text":"请问成都今天限号是多少",
    "raw_text":"请问 成都 今天 限号 是 多少",
    "err_no": 0
}

query:查一下天津周三限行到几点

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "vehichle",
            "intent": "LIMIT_TIME",
            "score": 100,
            "slots": {
                  "user_city": [
                    {
                        "word": "天津",
                        "norm": "天津市"
                    }
                ],
                  "user_time": [
                    {
                        "word": "周三",
                        "norm": "2019-01-23"
                    }
                ]
            }
        }
    ],
    "parsed_text":"查一下天津周三限行到几点",
    "raw_text":"查一下 天津 周三 限行 到 几点",
    "err_no": 0
}

卡通

卡通(animation)提供基于角色、导演、地区、动画片名称等属性的精确需求搜索和泛需求搜索。卡通意图及词槽表示如下:

示例:

query:我要看西游记的动画片

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "animation",
            "intent": "ANIMATION_INFO",
            "score": 100,
            "slots": {
                  "user_ani_name": [
                    {
                        "word": "西游记",
                        "norm": "西游记"
                    }
                ]
            }
        }
    ],
    "parsed_text":"我 要 看 西游记 的动画片",
    "raw_text":"我要看西游记的动画片",
    "err_no": 0
}

query:现在有什么好看的动画片

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "animation",
            "intent": "ANIMATION_RANK",
            "score": 100,
            "slots": {
                  "user_time": [
                    {
                        "word": "现在",
                        "norm": "2019-01-21|15:43:05"
                    }
                ],
                  "user_ani_tag": [
                    {
                        "word": "好看",
                        "norm": "好看"
                    }
                ]
            }
        }
    ],
    "parsed_text":"现在 有 什么 好看 的 动画片",
    "raw_text":"现在有什么好看的动画片",
    "err_no": 0
}

数值计算

数值计算(qv)提供数字计算和数字比较大小的语义解析。数值计算意图及词槽表示如下:

示例:

query:零和负二谁大

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "qv",
            "intent": "NUM_COMPARE",
            "score": 100,
            "slots": {
                  "user_num": [
                    {
                        "word": "零",
                        "norm": "0"
                    }
                ],
                  "user_num": [
                    {
                        "word": "负二",
                        "norm": "-2"
                    }
                ],
                  "user_compare_type": [
                    {
                        "word": "大",
                        "norm": "大"
                    }
                ]
            }
        }
    ],
    "parsed_text":"零 和 负二 谁 大",
    "raw_text":"零和负二谁大",
    "err_no": 0
}

团购

团购(groupbuy)提供具体到某个城市、区域、区县的指定货品类型、时间、价格、距离的团购需求语义解析。团购意图及词槽表示如下:

示例:

query:附近有哪些人均100左右的酒店团购

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "groupbuy",
            "intent": "GROUPBUY",
            "score": 100,
            "slots": {
                  "user_goods": [
                    {
                        "word": "酒店",
                        "norm": "酒店"
                    }
                ]
            }
        }
    ],
    "parsed_text":"过 江 龙 火锅 有没有 团购",
    "raw_text":"过江龙火锅有没有团购",
    "err_no": 0
}

美食

美食(cate)提供具体到某个城市、区域、区县的指定美食种类或菜名的美食查询的语义解析。美食意图及词槽表示如下:

示例:

query:帮我找一家能停车有包间的火锅店

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "cate",
            "intent": "CATE",
            "score": 100,
            "slots": {
                  "user_parking": [
                    {
                        "word": "能停车",
                        "norm": "是"
                    }
                ],
                  "user_sep_room": [
                    {
                        "word": "有包间",
                        "norm": "是"
                    }
                ]
            }
        }
    ],
    "parsed_text":"帮 我 找 一家 能 停车 有 包间 的 火锅 店",
    "raw_text":"帮我找一家能停车有包间的火锅店",
    "err_no": 0
}

NBA

NBA(nba)提供NBA相关的球队、球员、教练等的图片、视频、新闻及比赛信息查找的语音解析。NBA意图及词槽表示如下:

示例:

query:有科比的图片吗

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "nba",
            "intent": "PICTURE_SEARCH",
            "score": 100,
            "slots": {
                  "user_basketball_player": [
                    {
                        "word": "科比",
                        "norm": "科比"
                    }
                ]
            }
        }
    ],
    "parsed_text":"有 科比 的图片 吗",
    "raw_text":"有科比的图片吗",
    "err_no": 0
}

query:看下马刺的比赛

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "nba",
            "intent": "GAME_SEARCH",
            "score": 100,
            "slots": {
                  "user_basketball_team": [
                    {
                        "word": "马刺",
                        "norm": "马刺"
                    }
                ]
            }
        }
    ],
    "parsed_text":"看下马刺的比赛",
    "raw_text":"看 下 马刺 的 比赛",
    "err_no": 0
}

日历

日历(calendar)能支持对星座、日期、天数、节日以及生肖年份查询的解析。日历意图及词槽表示如下

示例:

query:1992年7月1日出生的人是什么星座

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "calendar",
            "intent": "CONSTELLATION",
            "score": 100,
            "slots": {
                "user_date": [
                    {
                        "word": "1992年7月1日",
                        "norm": "1992-07-01"
                    }
                ]
            }
        }
    ],
    "parsed_text": "1992年7月1日 出生 的 人 是 什么 星座",
    "raw_text": "1992年7月1日出生的人是什么星座",
    "err_no": 0
}

query:明天是农历几号

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "calendar",
            "intent": "DATE",
            "score": 100,
            "slots": {
                "user_date": [
                    {
                        "word": "明天",
                        "norm": "2019-01-09"
                    }
                ],
                "user_calendar": [
                    {
                        "word": "农历",
                        "norm": "农历"
                    }
                ]
            }
        }
    ],
    "parsed_text": "明天 是 农历 几 号",
    "raw_text": "明天是农历几号",
    "err_no": 0
}

音乐

音乐(music)能支持下载、播放、推荐、搜索音乐的解析,并不局限于指定的歌名,还包括歌手、专辑、歌曲类型、不同地域、适合人群、影视作品、不同语言、不同乐器的相关音乐。音乐意图及词槽表示如下:

示例:

query:下载周杰伦的七里香

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "music",
            "intent": "DOWNLOAD_MUSIC",
            "score": 100,
            "slots": {
                "user_music_name": [
                    {
                        "word": "七里香",
                        "norm": "七里香"
                    }
                ],
					"user_singer_name": [
                    {
                        "word": "周杰伦",
                        "norm": "周杰伦"
                    }
                ]
            }
        }
],
"parsed_text": "下载 周杰伦 的 七里香",
"raw_text": "下载周杰伦的七里香",
    "err_no": 0
}

query:推荐适合小孩的音乐

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "music",
            "intent": "RECOMMEND_MUSIC",
            "score": 100,
            "slots": {
                "user_audience": [
                    {
                        "word": "小孩",
                        "norm": "小孩"
                    }
                ]
            }
        }
    ],
    "parsed_text": "推荐 适合 小孩 的 音乐",
    "raw_text": "推荐适合小孩的音乐",
    "err_no": 0
}

社交网络

社交网络(sns)能支持发送、刷新、分享、查看微博的解析,其中发送微博还支持编辑内容、at其他人。社交网络意图及词槽表示如下:

示例:

query:发新浪微博今天天气不错,然后@小度

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "sns",
            "intent": "SEND_SNS",
            "score": 100,
            "slots": {
                "user_channel": [
                    {
                        "word": "新浪微博",
                        "norm": "新浪微博"
                    }
                ],
					"user_wild_content": [
                    {
                        "word": "今天天气不错",
                        "norm": "今天天气不错"
                    }
                ],
					"user_wild_target": [
                    {
                        "word": "小度",
                        "norm": "小度"
                    }
                ]
            }
        }
],
"parsed_text": "发 新浪 微博 今天 天气 不 错 , 然后 @ 小度",
"raw_text": "发新浪微博今天天气不错,然后@小度",
    "err_no": 0
}

query:刷新一下新浪微博

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "sns",
            "intent": "REFRESH_SNS",
            "score": 100,
            "slots": {
                "user_channel": [
                    {
                        "word": "新浪微博",
                        "norm": "新浪微博"
                    }
                ]
            }
        }
    ],
    "parsed_text": "刷新 一 下 新浪 微博",
    "raw_text": "刷新一下新浪微博",
    "err_no": 0
}

网站

网站(website)能支持打开网站、打开网址的解析,也支持用不同浏览器打开网站网址的解析。网站意图及词槽表示如下:

示例:

query:用QQ浏览器打开百度

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "website",
            "intent": " OPEN_WEBSITE",
            "score": 100,
            "slots": {
                "user_brower": [
                    {
                        "word": "QQ浏览器",
                        "norm": "QQ浏览器"
                    }
                ],
					"user_site": [
                    {
                        "word": "百度",
                        "norm": "百度"
                    }
                ]
            }
        }
],
"parsed_text": "用 QQ 浏览 器 打开 百度",
"raw_text": "用QQ浏览器打开百度",
    "err_no": 0
}

query:打开百度

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "website",
            "intent": " OPEN_WEBSITE",
            "score": 100,
            "slots": {
                "user_site": [
                    {
                        "word": "百度",
                        "norm": "百度"
                    }
                ]
            }
        }
    ],
    "parsed_text": "打开 百度",
    "raw_text": "打开百度",
    "err_no": 0
}

车载指令

车载指令(vehicle_instruction)能支持打开关闭车载设备、查看车辆的数据、设置空调的温度、拨打接听挂断蓝牙电话的解析。车载指令意图及词槽表示如下:

示例:

query:关闭蓝牙

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "vehicle_instruction",
            "intent": "CLOSE_DEVICE",
            "score": 100,
            "slots": {
					"user_device": [
                    {
                        "word": "蓝牙",
                        "norm": "蓝牙"
                    }
                ]
            }
        }
],
"parsed_text": "关闭 蓝牙",
"raw_text": "关闭蓝牙",
    "err_no": 0
}

query:打蓝牙电话13820306899

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "vehicle_instruction",
            "intent": "CALL",
            "score": 100,
            "slots": {
                "user_phone_num": [
                    {
                        "word": "13820306899",
                        "norm": "13820306899"
                    }
                ]
            }
        }
    ],
    "parsed_text": "打 蓝牙 电话 13820306899",
    "raw_text": "打蓝牙电话13820306899",
    "err_no": 0
}

手机设置

手机设置(setting)能支持打开关闭系统声音设置、屏幕旋转、系统显示设置、安全设置、日期设置、震动模式、静音模式、正常模式、wifi、wifi设置、gps、移动数据连接、蓝牙、蓝牙设置、飞行模式、屏幕显示、移动网络、自动锁屏、账户同步的解析。手机设置意图及词槽表示如下:

示例:

query:打开声音设置

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "setting",
            "intent": "SOUND_SETTING",
            "score": 100,
            "slots": {
					"user_on": [
                    {
                        "word": "打开",
                        "norm": "打开"
                    }
                ]
            }
        }
],
"parsed_text": "打开 声音 设置",
"raw_text": "打开声音设置",
    "err_no": 0
}

query:震动模式关了

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "setting",
            "intent": "SHAKE_MODE",
            "score": 100,
            "slots": {
                "user_off": [
                    {
                        "word": "关了",
                        "norm": "关闭"
                    }
                ]
            }
        }
    ],
    "parsed_text": "震动 模式 关了",
    "raw_text": "震动模式关了",
    "err_no": 0
}

菜谱

菜谱(recipe)能支持菜谱的查询(包含菜名)及推荐(不含菜名)的解析,同时也支持美食种类、适合人群、适合场景、各种食材、各种炊具、各种烹饪方法、各种口味的菜谱推荐,并且可以选择以不同的形式展示出来。菜谱意图及词槽表示如下:

示例:

query:有哪些煎锅就可以做的酸甜口的菜

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "recipe",
            "intent": "RECOMMEND_RECIPE",
            "score": 100,
            "slots": {
					"user_tool": [
                    {
                        "word": "煎锅",
                        "norm": "煎锅"
                    },
"user_taste": [
                    {
                        "word": "酸甜口",
                        "norm": "酸甜"
                    }
                ]
            }
        }
],
"parsed_text": "有 哪些 煎锅 就 可以 做 的 酸甜 口 的 菜",
"raw_text": "有哪些煎锅就可以做的酸甜口的菜",
    "err_no": 0
}

query:帮我找个做宫保鸡丁的视频

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "recipe",
            "intent": "SEARCH_RECIPE",
            "score": 100,
            "slots": {
                "user_dish": [
                    {
                        "word": "宫保鸡丁",
                        "norm": "宫保鸡丁"
                    },
					"user_media": [
                    {
                        "word": "视频",
                        "norm": "视频"
                    }
                ]
            }
        }
    ],
    "parsed_text": "帮 我 找 个 做 宫 保 鸡丁 的 视频",
    "raw_text": "帮我找个做宫保鸡丁的视频",
    "err_no": 0
}

股票

股票(stock)能支持股市整体(不含个股名称)以及个股(包含个股名称)的股价、行情、k线、日k、周k、月k、涨跌情况的解析。股票意图及词槽表示如下:

示例:

query:看下今天的a股走势

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "stock",
            "intent": "QUOTATION",
            "score": 100,
            "slots": {
					"user_time": [
                    {
                        "word": "今天",
                        "norm": " 2019-01-14"
                    },
					"user_stock_market": [
                    {
                        "word": " a股",
                        "norm": " A股"
                    },
"user_focus": [
                    {
                        "word": "走势",
                        "norm": "行情"
                    }
                ]
            }
        }
],
"parsed_text": "看 下 今天 的 a股 走势",
"raw_text": "看下今天的a股走势",
    "err_no": 0
}

query:201000这支股的股价

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "stock",
            "intent": "STOCK",
            "score": 100,
            "slots": {
                "user_stock_code": [
                    {
                        "word": "201000",
                        "norm": "201000"
                    },
					"user_focus": [
                    {
                        "word": "股价",
                        "norm": "股价"
                    }
                ]
            }
        }
    ],
    "parsed_text": "201000 这 支 股 的 股价",
    "raw_text": "201000这支股的股价",
    "err_no": 0
}

电视指令

电视指令(tv_instruction)能支持调整音量、更换频道、更换信号源、打开关闭主界面、打开关闭静音、打开关闭系统设置、开关电视、切换上一个下一个频道和信号源的解析。电视指令意图及词槽表示如下:

示例:

query:把音量调到50

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "tv_instruction",
            "intent": "CHANGE_VOLUME",
            "score": 100,
            "slots": {
					"user_vol": [
                    {
                        "word": "50",
                        "norm": "50"
                    }
                ]
            }
        }
],
"parsed_text": "把 音量 调到 50",
"raw_text": "把音量调到50",
    "err_no": 0
}

query:调到湖南卫视

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "tv_instruction",
            "intent": "CHANGE_CHANNEL",
            "score": 100,
            "slots": {
                "user_channel": [
                    {
                        "word": "湖南卫视",
                        "norm": "湖南卫视"
                    }
                ]
            }
        }
    ],
    "parsed_text": "调到 湖南 卫视",
    "raw_text": "调到湖南卫视",
    "err_no": 0
}

酒店

酒店(hotel)能支持搜索酒店、搜索酒店房间的解析,还支持查询酒店房价、星级、房型的解析。酒店意图及词槽表示如下:

示例:

query:附近离店时间随意的酒店

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "hotel",
            "intent": "HOTEL_SEARCH",
            "score": 100,
            "slots": {
					"user_loc": [
                    {
                        "word": "附近",
                        "norm": "附近"
                    }
                ],
					"user_checkout_time": [
                    {
                        "word": "随意",
                        "norm": "随时"
                    }
                ]
            }
        }
],
"parsed_text": "附近 离 店 时间 随意 的 酒店",
"raw_text": "附近离店时间随意的酒店",
    "err_no": 0
}

query:七天连锁酒店提供接机服务的房间价格

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "hotel",
            "intent": "HOTEL_INFO",
            "score": 100,
            "slots": {
                "user_hotel_name": [
                    {
                        "word": "七天连锁酒店",
                        "norm": "七天连锁酒店"
                    }
                ],
					"user_facility": [
                    {
                        "word": "提供接机服务",
                        "norm": "接机服务"
                    }
                ],
					"user_focus": [
                    {
                        "word": "价格",
                        "norm": "价格"
                    }
                ]
            }
        }
    ],
    "parsed_text": "七天 连锁 酒店 提供 接机 服务 的 房间 价格",
    "raw_text": "七天连锁酒店提供接机服务的房间价格",
    "err_no": 0
}

地图

地图(map)能支持查询poi、查询路线、导航以及搜索附近的解析。地图意图及词槽表示如下

示例:

query:搜一下上地附近的麦当劳

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "map",
            "intent": "NEARBY",
            "score": 100,
            "slots": {
					"user_center": [
                    {
                        "word": "上地",
                        "norm": "上地"
                    }
                ],
					"user_target": [
                    {
                        "word": "麦当劳",
                        "norm": "麦当劳"
                    }
                ]
            }
        }
],
"parsed_text": "搜 一 下 上地 附近 的 麦当劳",
"raw_text": "搜一下上地附近的麦当劳",
    "err_no": 0
}

query:坐公交从上地出发到西二旗

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "map",
            "intent": "ROUTE",
            "score": 100,
            "slots": {
                "user_route_arrival": [
                    {
                        "word": "西二旗",
                        "norm": "(北京市)>(海淀区)>西二旗"
                    }
                ],
					"user_route_start": [
                    {
                        "word": "上地",
                        "norm": "上地"
                    }
                ],
					"user_travel_type": [
                    {
                        "word": "坐公交",
                        "norm": "公交"
                    }
                ]
            }
        }
    ],
    "parsed_text": "坐 公交 从 上地 出发 到 西二旗",
    "raw_text": "坐公交从上地出发到西二旗",
    "err_no": 0
}

综艺

综艺(tv_show)能支持对综艺节目的查询、推荐、下载、播放的解析。综艺意图及词槽表示如下:

示例:

query:湖南卫视晚上8点有什么综艺节目

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "tv_show",
            "intent": "SEARCH_TVSHOW",
            "score": 100,
            "slots": {
					"user_time": [
                    {
                        "word": "晚上8点",
                        "norm": "20:00:00"
                    }
                ],
					"user_tv_station": [
                    {
                        "word": "湖南卫视",
                        "norm": "湖南卫视"
                    }
                ]
            }
        }
],
"parsed_text": "湖南 卫视 晚上 8 点 有 什么 综艺 节目",
"raw_text": "湖南卫视晚上8点有什么综艺节目",
    "err_no": 0
}

query:下载快乐大本营第5季

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "tv_show",
            "intent": "DOWNLOAD_TVSHOW",
            "score": 100,
            "slots": {
                "user_period": [
                    {
                        "word": "第5季",
                        "norm": "5.000000|部"
                    }
                ],
					"user_tvshow_name": [
                    {
                        "word": "快乐大本营",
                        "norm": "快乐大本营"
                    }
                ]
            }
        }
    ],
    "parsed_text": "下载 快乐 大本营 第 5 季",
    "raw_text": "下载快乐大本营第5季",
    "err_no": 0
}

记账

记账(account)能支持记录收入支出的解析,还支持查询收入支出的解析。记账意图及词槽表示如下:

示例:

query:昨天晚上看电影花了100块钱

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "account",
            "intent": "RECORD_EXPENSE",
            "score": 100,
            "slots": {
					"user_amount": [
                    {
                        "word": "100块钱",
                        "norm": "100.000000|元"
                    }
                ],
					"user_expensed_on": [
                    {
                        "word": "看电影",
                        "norm": "看电影"
                    }
                ],
					"user_time": [
                    {
                        "word": "昨天晚上",
                        "norm": "2019-01-15|18:00:00"
                    }
                ]
            }
        }
],
"parsed_text": "昨天 晚上 看 电影 花 了100 块 钱",
"raw_text": "昨天晚上看电影花了100块钱",
    "err_no": 0
}

query:今年理财挣了多少

{
    "appid": 597,
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "account",
            "intent": "INQUIRY_INCOME",
            "score": 100,
            "slots": {
                "user_time": [
                    {
                        "word": "今年",
                        "norm": "2019-00-00"
                    }
                ],
					"user_income_src": [
                    {
                        "word": "理财",
                        "norm": "理财"
                    }
                ]
            }
        }
    ],
    "parsed_text": "今年 理财 挣 了 多少",
    "raw_text": "今年理财挣了多少",
    "err_no": 0
}

导航指令

导航指令(navigate_instruction)能实现基本的如导航、设置等工具的打开和关闭功能、对地图工具的放大和缩小以及查看功能、添加收藏地点、切换路线类型、避开xx路、查询限速、查询剩余距离、查询剩余时间等导航常用的功能的解析。导航指令意图及词槽表示如下:

示例:

query:把后厂村路添加到收藏

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "navigate_instruction ",
            "intent": "ADD_FAVORITE",
            "score": 100,
            "slots": {
                "user_favorite_poi": [
                    {
                        "word": "后厂村路",
                        "norm": "后厂村路"
                    }
                ]
            }
        }
    ],
    "parsed_text": "把 后 厂 村 路 添加 到 收藏",
    "raw_text": "把后厂村路添加到收藏",
    "err_no": 0
}

query:我想走不堵的路

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "navigate_instruction ",
            "intent": "CHANGE_ROUTE_TYPE",
            "score": 100,
            "slots": {
                "user_route_type": [
                    {
                        "word": "不堵的",
                        "norm": "躲避拥堵"
                    }
                ]
            }
        }
    ],
    "parsed_text": "我 想 走 不 堵 的 路",
    "raw_text": "我想走不堵的路",
    "err_no": 0
}

影讯

影讯(film_news)能实现某地或电影院影讯查询功能和查询影片属性的解析。影讯意图及词槽表示如下:

示例:

query:这周末有没有张艺谋导演的电影上映

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "film_news",
            "intent": "MOVIE_SCHEDULE",
            "score": 100,
            "slots": {
                "user_director": [
                    {
                        "word": "张艺谋",
                        "norm": "张艺谋"
                    }
                ],
                "user_time": [
                    {
                        "word": "周末",
                        "norm": "2019-01-12"
                    }
                ]

            }
        }
    ],
    "parsed_text": "这 周末 有 没 有 张艺谋 导演 的 电影 上映",
    "raw_text": "这周末有没有张艺谋导演的电影上映",
    "err_no": 0
}

query:楚门的世界上映时间

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "film_news",
            "intent": "MOVIE_PROP",
            "score": 100,
            "slots": {
                "user_movie_name": [
                    {
                        "word": "楚门的世界",
                        "norm": "楚门的世界"
                    }
                ]
                "user_movie_prop": [
                    {
                        "word": "上映时间",
                        "norm": "上映时间"
                    }
                ]
            }
        }
    ],
    "parsed_text": "楚门 的 世界 上映 时间",
    "raw_text": "楚门的世界上映时间",
    "err_no": 0
}

话费查询

话费查询(phone_charges)能实现对话费流量的查询的解析。话费查询的意图及词槽表示如下:

示例:

query:我这个月移动号余额多少

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "phone_charges",
            "intent": "PHONE_CHARGE",
            "score": 100,
            "slots": {
                "user_date": [
                    {
                        "word": "这个月",
                        "norm": "2019-01-00"
                    }
                ]
                "user_item": [
                    {
                        "word": "余额",
                        "norm": "账户余额"
                    }
                ]
                "user_operator": [
                    {
                        "word": "移动",
                        "norm": "移动"
                    }
                ]
            }
        }
    ],
    "parsed_text": "我 这个 月 移动 号 余额 多少",
    "raw_text": "我这个月移动号余额多少",
    "err_no": 0
}

query:15512345678流量剩余量

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "phone_charges",
            "intent": "PHONE_CHARGE",
            "score": 100,
            "slots": {
                "user_number": [
                    {
                        "word": "15512345678",
                        "norm": "15512345678"
                    }
                ]
                "user_item": [
                    {
                        "word": "流量",
                        "norm": "流量"
                    }
                ]
                "user_topic": [
                    {
                        "word": "剩余量",
                        "norm": "剩余量"
                    }
                ]
            }
        }
    ],
    "parsed_text": "15512345678 流量 剩余 量",
    "raw_text": "15512345678流量剩余量",
    "err_no": 0
}

旅游

旅游(travel)能实现景点查询、门票价格查询、景点开放时间查询等指令的解析。旅游的意图及词槽表示如下:

示例:

query:故宫的开门时间

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "travel",
            "intent": "SPOT_OPEN_TIME",
            "score": 100,
            "slots": {
                "user_destination": [
                    {
                        "word": "故宫",
                        "norm": "故宫"
                    }
                ]
            }
        }
    ],
    "parsed_text": "故宫 的 开门 时间",
    "raw_text": "故宫的开门时间",
    "err_no": 0
}

query:北京有哪些好玩的景点

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "travel",
            "intent": "SPOT_SEARCH",
            "score": 100,
            "slots": {
                "user_destination": [
                    {
                        "word": "北京",
                        "norm": "北京市"
                    }
                ]
            }
        }
    ],
    "parsed_text": "北京 有 哪些 好玩 的 景点",
    "raw_text": "北京有哪些好玩的景点",
    "err_no": 0
}

人物

人物(person)能实现人物查询和人物属性查询指令的解析。 人物的意图及词槽表示如下:

示例:

query:演员刘德华

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "person",
            "intent": "PERSON",
            "score": 100,
            "slots": {
                "user_title": [
                    {
                        "word": "演员",
                        "norm": "演员"
                    }
                ],
                 "user_person_name": [
                    {
                        "word": "刘德华",
                        "norm": "刘德华"
                    }
                ]
 			}
        }
    ],
    "parsed_text": "演员 刘德华",
    "raw_text": "演员刘德华",
    "err_no": 0
}

query:刘德华身高多少

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "person",
            "intent": "PERSON_ATTR",
            "score": 100,
            "slots": {
                "user_focus": [
                    {
                        "word": "身高",
                        "norm": "身高"
                    }
                ],
                 "user_person_name": [
                    {
                        "word": "刘德华",
                        "norm": "刘德华"
                    }
                ]
 }
        }
    ],
    "parsed_text": "刘德华 身高 多少",
    "raw_text": "刘德华身高多少",
    "err_no": 0
}

手机应用

手机应用(app)能实现对手机应用的打开、卸载、更新、下载、搜索、推荐指令的解析。手机应用的意图及词槽表示如下:

示例:

query:打开微信

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "app",
            "intent": "OPEN_APP",
            "score": 100,
            "slots": {
                "user_app_name": [
                    {
                        "word": "微信",
                        "norm": "微信"
}
				]
}
        }
    ],
    "parsed_text": "打开 微信",
    "raw_text": "打开微信",
    "err_no": 0
}

query:用百度下载一个音乐类型的软件

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "app",
            "intent": "DOWNLOAD_APP",
            "score": 100,
            "slots": {
                "user_channel": [
                    {
                        "word": "百度",
                        "norm": "百度手机助手"
}
				],
                "user_game_category ": [
                    {
                        "word": "音乐",
                        "norm": "音乐"
}
				]
}
        }
    ],
    "parsed_text": "用 百度 下载 一 个 音乐 类型 的 软件",
    "raw_text": "用百度下载一个音乐类型的软件",
    "err_no": 0
}

搜索

搜索(search)能实现一般搜索指令的解析。搜索的意图及词槽表示如下:

示例:

query:搜索一下李彦宏的资料

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "search",
            "intent": "SEARCH",
            "score": 100,
            "slots": {
                "user_wild_content": [
                    {
                        "word": "李彦宏的资料",
                        "norm": "李彦宏的资料"
                    }
                ]
 			 }
        }
    ],
    "parsed_text": "搜索 一 下 李彦宏 的 资料",
    "raw_text": "搜索一下李彦宏的资料",
    "err_no": 0
}

query:百度一下明天天气

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "search",
            "intent": "SEARCH",
            "score": 100,
            "slots": {
                "user_source ": [
                    {
                        "word": "百度",
                        "norm": "百度"
                    }
                ],
                "user_wild_content": [
                    {
                        "word": "明天天气",
                        "norm": "明天天气"
                    }
                ]
 }
        }
    ],
    "parsed_text": "百度 一 下 明天 天气",
    "raw_text": "百度一下明天天气",
    "err_no": 0
}

通用设置

通用设置(instruction)能实现基本的静音、调低调高音量、查看电量、打开、关闭、退出等基本通用指令的解析。通用设置的意图及词槽表示如下:

示例:

query:还剩多少电

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "instruction",
            "intent": "BATTERY_LEVEL",
            "score": 100,
            "slots": {
}
        }
    ],
    "parsed_text": "还剩 多少 电",
    "raw_text": "还剩多少电",
    "err_no": 0
}

query:跳到倒数第5个

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "instruction",
            "intent": "SELECT",
            "score": 100,
            "slots": {
                "user_index": [
                    {
                        "word": "倒数第5个",
                        "norm": "-5.000000|个"
                    }
                ]
}
        }
    ],
    "parsed_text": "跳 到 倒数 第 5 个",
    "raw_text": "跳到倒数第5个",
    "err_no": 0
}

小说

小说(novel)能实现下载小说、在线阅读小说、搜索小说、推荐小说等指令的解析。小说意图及词槽表示如下:

示例:

query:我想在线看一个适合学生看的小说

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "novel",
            "intent": "READ_NOVEL",
            "score": 100,
            "slots": {
                "user_ audience": [
                    {
                        "word": "适合学生看",
                        "norm": "学生"
                    }
                ]
}
        }
    ],
    "parsed_text": "我 想 在线 看 一 个 适合 学生 看 的 小说",
    "raw_text": "我想在线看一个适合学生看的小说",
    "err_no": 0
}

query:下载鬼吹灯第五章

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "novel",
            "intent": "DOWNLOAD_NOVEL",
            "score": 100,
            "slots": {
                "user_novel_name": [
                    {
                        "word": "鬼吹灯",
                        "norm": "鬼吹灯"
                    }
                ],
                "user_novel_chapter": [
                    {
                        "word": "第五章",
                        "norm": " 5.000000|章"
                    }
                ]
}
        }
    ],
    "parsed_text": "下载 鬼吹灯 第 五 章",
    "raw_text": "下载鬼吹灯第五章",
    "err_no": 0
}

笑话

笑话(joke)能实现播放笑话、搜索笑话的指令的解析。笑话的意图及词槽表示如下:

示例:

query:讲个适合小孩的笑话

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "joke",
            "intent": "TELL_JOKE",
            "score": 100,
            "slots": {
                "user_audience": [
                    {
                        "word": "适合小孩的",
                        "norm": "儿童"
                    }
                ]
}
        }
    ],
    "parsed_text": "讲 个 适合 小孩 的 笑话",
    "raw_text": "讲个适合小孩的笑话",
    "err_no": 0
}

query:搜索个适合睡前听的笑话

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "joke",
            "intent": "SEARCH_JOKE",
            "score": 100,
            "slots": {
                "user_scene": [
                    {
                        "word": "适合睡前听的",
                        "norm": "睡前"
                    }
                ]
}
        }
    ],
    "parsed_text": "搜索 个 适合 睡前 听 的 笑话",
    "raw_text": "搜索个适合睡前听的笑话",
    "err_no": 0
}

音乐播放

音乐播放(player)能实现对音乐播放器基本的退出、播放、定位、暂停、播放上一首下一首、打开设置等指令的解析。音乐播放的意图及词槽表示如下:

示例:

query:播放上一首

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "player",
            "intent": "PLAY_PREVIOUS",
            "score": 100,
            "slots": {
}
        }
    ],
    "parsed_text": "播放 上 一 首",
    "raw_text": "播放上一首",
    "err_no": 0
}

query:从2分钟开始播放

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "player",
            "intent": "SEEK",
            "score": 100,
            "slots": {
                "user_time": [
                    {
                        "word": "2分钟",
                        "norm": "120.000000|秒"
                    }
                ]
}
        }
    ],
    "parsed_text": "从 2 分钟 开始 播放",
    "raw_text": "从2分钟开始播放",
    "err_no": 0
}

通讯录

通讯录(contact)能实现添加、编辑联系人,查找、控制联系人,通讯录操作,保存等指令的解析。通讯录意图及词槽表示如下:

示例:

query:添加工作电话13820306899

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "contact",
            "intent": "ADD_TEL_NUM",
            "score": 100,
            "slots": {
                "user_edit_tag": [
                    {
                        "word": "工作电话",
                        "norm": "工作电话"
                    }
                ],
                "user_wild_content": [
                    {
                        "word": "13820306899",
                        "norm": "13820306899"
                    }
                ]
}
        }
    ],
    "parsed_text": "添加 工作 电话 13820306899",
    "raw_text": "添加工作电话13820306899",
    "err_no": 0
}

query:添加张三

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "contact",
            "intent": "ADD_CONTACT",
            "score": 100,
            "slots": {
                "user_contact": [
                    {
                        "word": "张三",
                        "norm": "张三"
                    }
                ]
}
        }
    ],
    "parsed_text": "添加 张 三",
    "raw_text": "添加张三",
    "err_no": 0
}

翻译

翻译(translation)能实现查询翻译指令的解析。翻译的意图及词槽表示如下:

示例:

query:翻译今天天气不错

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "translation",
            "intent": "TRANSLATE",
            "score": 100,
            "slots": {
                "user_wild_target": [
                    {
                        "word": "今天天气不错",
                        "norm": "今天天气不错"
                    }
                ]
}
        }
    ],
    "parsed_text": "翻译 今天 天气 不 错",
    "raw_text": "翻译今天天气不错",
    "err_no": 0
}

query:把你好翻译成英文

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "translation",
            "intent": "TRANSLATE",
            "score": 100,
            "slots": {
                "user_wild_target": [
                    {
                        "word": "你好",
                        "norm": "你好"
                    }
                ],
                "user_trans_des ": [
                    {
                        "word": "英文",
                        "norm": "英语"
                    }
                ]
}
        }
    ],
    "parsed_text": "把 你好 翻译 成 英文",
    "raw_text": "把你好翻译成英文",
    "err_no": 0
}

提醒

提醒(alarm)能实现设置提醒、删除提醒、查看提醒等指令的解析。提醒意图及词槽表示如下:

示例:

query:重要,每天早上八点半提醒我起床

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "alarm",
            "intent": "USER_SET_REMIND",
            "score": 100,
            "slots": {
                "user_remind_type": [
                    {
                        "word": "每天",
                        "norm": "repeat"
                    }
                ],
                "user_remind_time": [
                    {
                        "word": "早上八点半",
                        "norm": "08:30:00"
                    }
                ],
                "user_wild_content": [
                    {
                        "word": "起床",
                        "norm": "起床"
                    }
                ],
                "user_remind_importance": [
                    {
                        "word": "重要",
                        "norm": "重要"
                    }
                ]
}
        }
    ],
    "parsed_text": "重要 , 每天 早上 八 点 半 提醒 我 起床",
    "raw_text": "重要,每天早上八点半提醒我起床",
    "err_no": 0
}

query:取消明天早上的提醒

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "alarm",
            "intent": "USER_DELETE_REMIND",
            "score": 100,
            "slots": {
                "user_remind_time": [
                    {
                        "word": "明天早上",
                        "norm": "2019-01-18|07:00:00"
                    }
                ]
}
        }
    ],
    "parsed_text": "取消 明天 早上 的 提醒",
    "raw_text": "取消明天早上的提醒",
    "err_no": 0
}

收音机

收音机(radio)能实现播放收音机,打开收音机,关闭收音机等指令的解析。收音机意图及词槽表示如下:

示例:

query:播放音乐之声

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "radio",
            "intent": "PLAY_RADIO",
            "score": 100,
            "slots": {
                "user_radio_name": [
                    {
                        "word": "音乐之声",
                        "norm": "音乐之声"
                    }
                ]
}
        }
    ],
    "parsed_text": "播放 音乐 之 声",
    "raw_text": "播放音乐之声",
    "err_no": 0
}

query:播放北京地区音乐频道

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " radio ",
            "intent": "PLAY_RADIO",
            "score": 100,
            "slots": {
                "user_radio_area": [
                    {
                        "word": "北京地区",
                        "norm": "北京市"
                    }
                ],
                "user_radio_type": [
                    {
                        "word": "音乐",
                        "norm": "音乐"
                    }
                ]
}
        }
    ],
    "parsed_text": "播放 北京 地区 音乐 频道",
    "raw_text": "播放北京地区音乐频道",
    "err_no": 0
}

短信

短信(message)能实现发短信、启动短信应用、退出短信应用、删除短信、查看短信、返回、取消发送等指令的解析。短信意图及词槽表示如下:

示例:

query:发短信给张三说对不起

{ 
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "message",
            "intent": "SEND_SMS",
            "score": 100,
            "slots": {
                "user_receiver": [
                    {
                        "word": "张三",
                        "norm": "张三"
                    }
                ],
                "user_wild_content": [
                    {
                        "word": "对不起",
                        "norm": "对不起"
                    }
                ]
}
        }
    ],
    "parsed_text": "发 短信 给 张 三 说 对不起",
    "raw_text": "发短信给张三说对不起",
    "err_no": 0
}

query:查看张三的第三条未读短信

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "message",
            "intent": "VIEW_SMS",
            "score": 100,
            "slots": {
                "user_sender": [
                    {
                        "word": "张三",
                        "norm": "张三"
                    }
                ],
                "user_index": [
                    {
                        "word": "第三条",
                        "norm": " 3.000000|个"
                    }
                ],
                "user_sms_type": [
                    {
                        "word": "未读",
                        "norm": "未读"
                    }
                ]
}
        }
    ],
    "parsed_text": "查看 张 三 的 第 三 条 未 读 短信",
    "raw_text": "查看张三的第三条未读短信",
    "err_no": 0
}

故事

故事(story)能实现播放故事、查询搜索故事等指令的解析。故事意图及词槽表示如下:

示例:

query:播放一个张震的恐怖故事

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "story",
            "intent": "PLAY_STORY",
            "score": 100,
            "slots": {
                "user_author": [
                    {
                        "word": "张震",
                        "norm": "张震"
                    }
                ],
                "user_story_genre ": [
                    {
                        "word": "恐怖",
                        "norm": "恐怖"
                    }
                ]
}
        }
    ],
    "parsed_text": "播放 一 个 张震 的 恐怖 故事",
    "raw_text": "播放一个张震的恐怖故事",
    "err_no": 0
}

query:搜索一个适合婴儿听的故事

{
    "appid": 597,	
    "encoding": "UTF-8",
    "results": [
        {
            "domain": " story",
            "intent": "SEARCH_STORY",
            "score": 100,
            "slots": {
                "user_audience ": [
                    {
                        "word": "适合婴儿听的",
                        "norm": "婴儿"
                    }
                ]
}
        }
    ],
    "parsed_text": "搜索 一 个 适合 婴儿 听 的 故事",
    "raw_text": "搜索一个适合婴儿听的故事",
    "err_no": 0
}