Important
语言理解智能服务(LUIS)将于 2026 年 3 月 31 日完全停用。 LUIS 资源创建不可用。 从 2025 年 10 月 31 日开始,LUIS 门户将不再可用。 建议将 LUIS 应用程序迁移到对话语言理解,以便从持续的产品支持和多语言功能中受益。
有许多方式使用数字值来量化、表达和描述信息片段。 本文仅包括了其中一些可能的示例。 LUIS 解释用户陈述中的变体并返回一致的数字值。 此实体已定型,因此不需要将包含数字的陈述示例添加到应用程序意向中。
数字类型
Number is managed from the Recognizers-text GitHub repository
数字解析示例
Utterance | Entity | Resolution |
---|---|---|
one thousand times |
"one thousand" |
"1000" |
1,000 people |
"1,000" |
"1000" |
1/2 cup |
"1 / 2" |
"0.5" |
one half the amount |
"one half" |
"0.5" |
one hundred fifty orders |
"one hundred fifty" |
"150" |
one hundred and fifty books |
"one hundred and fifty" |
"150" |
a grade of one point five |
"one point five" |
"1.5" |
buy two dozen eggs |
"two dozen" |
"24" |
LUIS 在它返回的 JSON 响应的 builtin.number
字段中包括 resolution
实体的已识别值。
预构建数字解析
查询返回以下实体对象:
order two dozen eggs
以下 JSON 的 verbose
参数设置为 false
:
"entities": {
"number": [
24
]
}
Next steps
Learn about the currency, ordinal, and percentage.