Skip to content

Latest commit

 

History

History
90 lines (72 loc) · 2.28 KB

luis-reference-prebuilt-ordinal.md

File metadata and controls

90 lines (72 loc) · 2.28 KB
title titleSuffix description ms.author author manager ms.service ms.subservice ms.topic ms.date
Ordinal Prebuilt entity - LUIS
Azure AI services
This article contains ordinal prebuilt entity information in Language Understanding (LUIS).
aahi
aahill
nitinme
azure-ai-language
azure-ai-luis
reference
01/19/2024

Ordinal prebuilt entity for a LUIS app

[!INCLUDE deprecation notice]

Ordinal number is a numeric representation of an object inside a set: first, second, third. Because this entity is already trained, you do not need to add example utterances containing ordinal to the application intents. Ordinal entity is supported in many cultures.

Types of ordinal

Ordinal is managed from the Recognizers-text GitHub repository

Resolution for prebuilt ordinal entity

The following entity objects are returned for the query:

Order the second option

The following JSON is with the verbose parameter set to false:

"entities": {
    "ordinal": [
        2
    ]
}

The following JSON is with the verbose parameter set to true:

"entities": {
    "ordinal": [
        2
    ],
    "$instance": {
        "ordinal": [
            {
                "type": "builtin.ordinal",
                "text": "second",
                "startIndex": 10,
                "length": 6,
                "modelTypeId": 2,
                "modelType": "Prebuilt Entity Extractor",
                "recognitionSources": [
                    "model"
                ]
            }
        ]
    }
}

The following example shows the resolution of the builtin.ordinal entity.

"entities": [
  {
    "entity": "second",
    "type": "builtin.ordinal",
    "startIndex": 10,
    "endIndex": 15,
    "resolution": {
      "value": "2"
    }
  }
]

Next steps

Learn about the OrdinalV2, phone number, and temperature entities.