Important
语言理解智能服务(LUIS)将于 2026 年 3 月 31 日完全停用。 LUIS 资源创建不可用。 从 2025 年 10 月 31 日开始,LUIS 门户将不再可用。 建议将 LUIS 应用程序迁移到对话语言理解,以便从持续的产品支持和多语言功能中受益。
预构建维度实体检测各种类型的维度,无论 LUIS 应用语言区域是怎样的。 此实体已定型,因此不需要将包含维度的陈述示例添加到应用程序意向中。 Dimension entity is supported in many cultures.
维度类型
Dimension is managed from the Recognizers-text GitHub repository.
维度实体的解析
查询返回以下实体对象:
10 1/2 miles of cable
以下 JSON 的 verbose
参数设置为 false
:
"entities": {
"dimension": [
{
"number": 10.5,
"units": "Mile"
}
]
}
以下 JSON 的 verbose
参数设置为 true
:
"entities": {
"dimension": [
{
"number": 10.5,
"units": "Mile"
}
],
"$instance": {
"dimension": [
{
"type": "builtin.dimension",
"text": "10 1/2 miles",
"startIndex": 0,
"length": 12,
"modelTypeId": 2,
"modelType": "Prebuilt Entity Extractor",
"recognitionSources": [
"model"
]
}
]
}
}
The following example shows the resolution of the builtin.dimension entity.
{
"entity": "10 1/2 miles",
"type": "builtin.dimension",
"startIndex": 0,
"endIndex": 11,
"resolution": {
"unit": "Mile",
"value": "10.5"
}
}
Next steps
Learn about the email, number, and ordinal entities.