LUIS 应用的电子邮件预生成实体Email prebuilt entity for a LUIS app

电子邮件提取包括陈述中的整个电子邮件地址。Email extraction includes the entire email address from an utterance. 此实体已定型,因此不需要将包含电子邮件的陈述示例添加到应用程序意向中。Because this entity is already trained, you do not need to add example utterances containing email to the application intents. 只有 en-us 语言区域中支持电子邮件实体。Email entity is supported in en-us culture only.

预构建电子邮件解析Resolution for prebuilt email

API 版本 2.xAPI version 2.x

以下示例显示了 builtin.email 实体的解析。The following example shows the resolution of the builtin.email entity.

{
  "query": "please send the information to patti.owens@microsoft.com",
  "topScoringIntent": {
    "intent": "None",
    "score": 0.811592042
  },
  "intents": [
    {
      "intent": "None",
      "score": 0.811592042
    }
  ],
  "entities": [
    {
      "entity": "patti.owens@microsoft.com",
      "type": "builtin.email",
      "startIndex": 31,
      "endIndex": 55,
      "resolution": {
        "value": "patti.owens@microsoft.com"
      }
    }
  ]
}

预览版 API 版本 3.xPreview API version 3.x

以下 JSON 的 verbose 参数设置为 falseThe following JSON is with the verbose parameter set to false:

{
    "query": "please send the information to patti.owens@microsoft.com",
    "prediction": {
        "normalizedQuery": "please send the information to patti.owens@microsoft.com",
        "topIntent": "None",
        "intents": {
            "None": {
                "score": 0.5023781
            }
        },
        "entities": {
            "email": [
                "patti.owens@microsoft.com"
            ]
        }
    }
}

以下 JSON 的 verbose 参数设置为 trueThe following JSON is with the verbose parameter set to true:

{
    "query": "please send the information to patti.owens@microsoft.com",
    "prediction": {
        "normalizedQuery": "please send the information to patti.owens@microsoft.com",
        "topIntent": "None",
        "intents": {
            "None": {
                "score": 0.5023781
            }
        },
        "entities": {
            "email": [
                "patti.owens@microsoft.com"
            ],
            "$instance": {
                "email": [
                    {
                        "type": "builtin.email",
                        "text": "patti.owens@microsoft.com",
                        "startIndex": 31,
                        "length": 25,
                        "modelTypeId": 2,
                        "modelType": "Prebuilt Entity Extractor"
                    }
                ]
            }
        }
    }
}

后续步骤Next steps

了解数字序号百分比Learn about the number, ordinal, and percentage.