LUIS 應用程式的 GeographyV2 預先建置實體

重要

LUIS 將於 2025 年 10 月 1 日淘汰,從 2023 年 4 月 1 日起,您將無法建立新的 LUIS 資源。 建議您 將 LUIS 應用程式 移轉至 對話式語言理解 ,以受益於持續的產品支援和多語系功能。

預先建置的 geographyV2 實體會偵測位置。 由於此實體已定型,因此您不需要將包含 GeographyV2 的範例語句新增至應用程式意圖。 英文 文化特性支援 GeographyV2 實體。

地理位置有子類型:

子類型 目的
poi 景點
city 城市名稱
countryRegion 國家或地區的名稱
continent 大陸的名稱
state 州或省的名稱

GeographyV2 實體的解析

查詢會傳回下列實體物件:

Carol is visiting the sphinx in gizah egypt in africa before heading to texas.

下列 JSON 會 verbose 參數設定為 false

"entities": {
    "geographyV2": [
        {
            "value": "the sphinx",
            "type": "poi"
        },
        {
            "value": "gizah",
            "type": "city"
        },
        {
            "value": "egypt",
            "type": "countryRegion"
        },
        {
            "value": "africa",
            "type": "continent"
        },
        {
            "value": "texas",
            "type": "state"
        }
    ]
}

在上述 JSON 中,poi是景點的縮寫

下一步

瞭解 電子郵件數位序數 實體。