LUIS 应用的温度预生成实体Temperature prebuilt entity for a LUIS app

“温度”提取了各种温度类型。Temperature extracts a variety of temperature types. 此实体已定型,因此不需要将包含温度的陈述示例添加到应用程序中。Because this entity is already trained, you do not need to add example utterances containing temperature to the application. 许多语言区域都支持存在温度实体。Temperature entity is supported in many cultures.

温度类型Types of temperature

温度托管在 Recognizers-text GitHub 存储库中Temperature is managed from the Recognizers-text GitHub repository

预构建温度实体的解析Resolution for prebuilt temperature entity

API 版本 2.xAPI version 2.x

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

{
  "query": "set the temperature to 30 degrees",
  "topScoringIntent": {
    "intent": "None",
    "score": 0.85310787
  },
  "intents": [
    {
      "intent": "None",
      "score": 0.85310787
    }
  ],
  "entities": [
    {
      "entity": "30 degrees",
      "type": "builtin.temperature",
      "startIndex": 23,
      "endIndex": 32,
      "resolution": {
        "unit": "Degree",
        "value": "30"
      }
    }
  ]
}

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

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

{
    "query": "set the temperature to 30 degrees",
    "prediction": {
        "normalizedQuery": "set the temperature to 30 degrees",
        "topIntent": "None",
        "intents": {
            "None": {
                "score": 0.656305432
            }
        },
        "entities": {
            "temperature": [
                {
                    "number": 30,
                    "unit": "Degree"
                }
            ]
        }
    }
}

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

{
    "query": "set the temperature to 30 degrees",
    "prediction": {
        "normalizedQuery": "set the temperature to 30 degrees",
        "topIntent": "None",
        "intents": {
            "None": {
                "score": 0.656305432
            }
        },
        "entities": {
            "temperature": [
                {
                    "number": 30,
                    "unit": "Degree"
                }
            ],
            "$instance": {
                "temperature": [
                    {
                        "type": "builtin.temperature",
                        "text": "30 degrees",
                        "startIndex": 23,
                        "length": 10,
                        "modelTypeId": 2,
                        "modelType": "Prebuilt Entity Extractor"
                    }
                ]
            }
        }
    }
}

后续步骤Next steps

了解百分比数字存在时间实体。Learn about the percentage, number, and age entities.