各领域语义表示协议

天气

天气(weather)能支持对天气、温度、风速等属性的查询的解析。天气意图及词槽表示如下:
注:"/"表示多个示例值分割,以下各领域皆同。

示例:

query:北京明天天气

{
    "appid": 597,    
    "encoding": "UTF-8",
    "results": [
        {
            "domain": "weather",
            "intent": "USER_WEATHER ",
            "score": 100,
            "slots": {
                "user_loc": [
                    {
                        "word": "北京",
                        "norm": ""
                    }
                ],
                "user_time ": [
                    {
                        "word": "明天",
                        "norm": ""
                    }
                ]
            }
        }
    ],
    "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": ""
                    }
                ]
            }
        }
    ],
    "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": [