Skip to content

Commit 593dea5

Browse files
authored
Merge pull request #41909 from v-geberr/0522-concept-2
0522 concept 2
2 parents 51efd0c + e5e61c0 commit 593dea5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/cognitive-services/LUIS/luis-concept-entity-types.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ manager: kaiqb
77
ms.service: cognitive-services
88
ms.component: language-understanding
99
ms.topic: article
10-
ms.date: 05/07/2018
10+
ms.date: 05/22/2018
1111
ms.author: v-geberr
1212
---
1313
# Entities in LUIS
1414

15-
Entities are key data in your application’s domain.<!-- An entity represents a class including a collection of similar objects (places, things, people, events or concepts). Entities describe information relevant to the intent, and sometimes they are essential for your app to perform its task. For example, a News Search app may include entities such as “topic”, “source”, “keyword” and “publishing date”, which are key data to search for news. In a travel booking app, the “location”, “date”, "airline", "travel class" and "tickets" are key information for flight booking (relevant to the "Bookflight" intent).
16-
-->
15+
Entities are words or phrases in utterances that are key data in your application’s domain.
1716

1817
## Entity compared to intent
19-
The entity represents the prediction for a word or phrase inside the utterance that you want extracted. By comparison, the intent represents the prediction of the entire utterance.
18+
The entity represents a word or phrase inside the utterance that you want extracted. An utterance can include many entities or none at all. An entity represents a class including a collection of similar objects (places, things, people, events or concepts). Entities describe information relevant to the intent, and sometimes they are essential for your app to perform its task. For example, a News Search app may include entities such as “topic”, “source”, “keyword” and “publishing date”, which are key data to search for news. In a travel booking app, the “location”, “date”, "airline", "travel class" and "tickets" are key information for flight booking (relevant to the "Bookflight" intent).
19+
20+
By comparison, the intent represents the prediction of the entire utterance.
2021

2122
## Entities represent data
2223
Entities are data you want to pull from the utterance. This can be a name, date, product name, or any group of words.
@@ -56,15 +57,15 @@ All intents, including the **None** intent, should have entities labeled. This h
5657
## Types of entities
5758
LUIS offers many types of entities; prebuilt entities, custom machine learned entities and list entities.
5859

59-
| Name |Type | Can label | Description |
60-
| -- |--|--|--|
61-
| **Prebuilt** |[Custom](#prebuilt)| | **Definition**<br>Built-in types that represent common concepts like numbers, dates, and email. <br><br>Prebuilt entity names are reserved. <br><br>All prebuilt entities that are added to the application are returned in the [endpoint](luis-glossary.md#endpoint) query. For more information, see [Prebuilt entities](./Pre-builtEntities.md). <!-- TBD: is this where the Sentiment Analysis Key phrase extraction entity concept should be? --><br/><br/>[Example response for entity](luis-concept-data-extraction.md#prebuilt-entity-data)|
62-
|<!-- added week of 3/21/08 --> **Regular Expression** | [RegEx](#regex)||**Definition**<br>Custom regular expression that ignores case and ignores cultural variant. <br><br>Regular expression matching is applied after spell-check alterations. <br><br>If the regular expression is too complex, such as using many brackets, you are not able to add the expression to the model. <br><br>**Example**<br>`kb[0-9]{6,}` matches kb123456.<br/><br/>[Quickstart](luis-quickstart-intents-regex-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md)|
63-
| **Simple** | [Machine-learned](#machine-learned) || **Definition**<br>A simple entity is a generic entity that describes a single concept and is learned from machine-learned context.<br/><br/>[Quickstart](luis-quickstart-primary-and-secondary-data.md)<br>[Example response for entity](luis-concept-data-extraction.md#simple-entity-data)|
64-
| **List** | [Exact match](#exact-match)|| **Definition**<br>List entities represent a fixed, closed set of related words in your system. <br><br>Each list entity may have one or more forms. Best used for a known set of variations on ways to represent the same concept.<br/><br/> LUIS does not discover additional values for list entities. Use the to see [semantic dictionary](luis-glossary.md#semantic-dictionary) to find suggestions for new words based on the current list.<br/><br>If there is more than one list entity with the same value, each entity is returned in the endpoint query. <br/><br/>[Quickstart](luis-quickstart-intent-and-list-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md#list-entity-data)|
65-
| **Pattern.any** | [Mixed](#mixed) ||**Definition**<br>Patterns.any is a variable-length placeholder used only in a pattern's template utterance to mark where the entity begins and ends. <br><br>**Example**<br>Given an utterance search for books based on title, the pattern.any extracts the complete title. A template utterance using pattern.any is `Who wrote {BookTitle}?`.<br/><br/>[Tutorial](luis-tutorial-pattern.md)<br>[Example response for entity](luis-concept-data-extraction.md#composite-entity-data)|
66-
| **Composite** | [Machine-learned](#machine-learned) ||**Definition**<br>A composite entity is made up of other entities, such as prebuilt entities, and simple. The separate entities form a whole entity. List entities are not allowed in composite entities. <br><br>**Example**<br>A composite entity named PlaneTicketOrder may have child entities prebuilt `number` and `ToLocation`. <br/><br/>[Tutorial](luis-tutorial-composite-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md#composite-entity-data)|
67-
| **Hierarchical** | [Machine-learned](#machine-learned) || **Definition**<br>A hierarchical entity is a category of contextually learned entities.<br><br>**Example**<br>Given a hierarchical entity of `Location` with children `ToLocation` and `FromLocation`, each child can be determined based on the **context** within the utterance. In the utterance, `Book 2 tickets from Seattle to New York`, the `ToLocation` and `FromLocation` are contextually different based the words around them. <br/><br/>**Do not use if**<br>If you are looking for an entity that has exact text matches for children regardless of context, you should use a List entity. If you are looking for a parent-child relationship with other entity types, you should use the Composite entity.<br/><br/>[Quickstart](luis-quickstart-intent-and-hier-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md#hierarchical-entity-data)|
60+
| Name | Can label | Description |
61+
| -- |--|--|
62+
| **Prebuilt** <br/>[Custom](#prebuilt)| | **Definition**<br>Built-in types that represent common concepts. <br><br>**List**<br/>key phrase number, ordinal, temperature, dimension, money, age, percentage, email, URL, phone number, and key phrase. <br><br>Prebuilt entity names are reserved. <br><br>All prebuilt entities that are added to the application are returned in the [endpoint](luis-glossary.md#endpoint) query. For more information, see [Prebuilt entities](./Pre-builtEntities.md). <br/><br/>[Example response for entity](luis-concept-data-extraction.md#prebuilt-entity-data)|
63+
|<!-- added week of 3/21/08 --> **Regular Expression**<br/>[RegEx](#regex)||**Definition**<br>Custom regular expression for formatted text. It ignores case and ignores cultural variant. <br><br>This entity is good for words or phrases that are consistently formatted with any variation that is also consistent.<br><br>Regular expression matching is applied after spell-check alterations. <br><br>If the regular expression is too complex, such as using many brackets, you are not able to add the expression to the model. <br><br>**Example**<br>`kb[0-9]{6,}` matches kb123456.<br/><br/>[Quickstart](luis-quickstart-intents-regex-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md)|
64+
| **Simple** <br/>[Machine-learned](#machine-learned) || **Definition**<br>A simple entity is a generic entity that describes a single concept and is learned from machine-learned context. Context include word choice, word placement, and utterance length.<br/><br/>This is a good entity for words or phrases that are not consistently formatted but indicate the same thing. <br/><br/>[Quickstart](luis-quickstart-primary-and-secondary-data.md)<br/>[Example response for entity](luis-concept-data-extraction.md#simple-entity-data)|
65+
| **List** <br/>[Exact match](#exact-match)|| **Definition**<br>List entities represent a fixed, closed set of related words along with their synoymns in your system. <br><br>Each list entity may have one or more forms. Best used for a known set of variations on ways to represent the same concept.<br/><br/>LUIS does not discover additional values for list entities. Use the to see [semantic dictionary](luis-glossary.md#semantic-dictionary) to find suggestions for new words based on the current list.<br/><br>If there is more than one list entity with the same value, each entity is returned in the endpoint query. <br/><br/>[Quickstart](luis-quickstart-intent-and-list-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md#list-entity-data)|
66+
| **Pattern.any** <br/>[Mixed](#mixed) ||**Definition**<br>Patterns.any is a variable-length placeholder used only in a pattern's template utterance to mark where the entity begins and ends. <br><br>**Example**<br>Given an utterance search for books based on title, the pattern.any extracts the complete title. A template utterance using pattern.any is `Who wrote {BookTitle}[?]`.<br/><br/>[Tutorial](luis-tutorial-pattern.md)<br>[Example response for entity](luis-concept-data-extraction.md#composite-entity-data)|
67+
| **Composite** <br/>[Machine-learned](#machine-learned) ||**Definition**<br>A composite entity is made up of other entities, such as prebuilt entities, and simple. The separate entities form a whole entity. List entities are not allowed in composite entities. <br><br>**Example**<br>A composite entity named PlaneTicketOrder may have child entities prebuilt `number` and `ToLocation`. <br/><br/>[Tutorial](luis-tutorial-composite-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md#composite-entity-data)|
68+
| **Hierarchical** <br/>[Machine-learned](#machine-learned) || **Definition**<br>A hierarchical entity is a category of contextually learned entities.<br><br>**Example**<br>Given a hierarchical entity of `Location` with children `ToLocation` and `FromLocation`, each child can be determined based on the **context** within the utterance. In the utterance, `Book 2 tickets from Seattle to New York`, the `ToLocation` and `FromLocation` are contextually different based the words around them. <br/><br/>**Do not use if**<br>If you are looking for an entity that has exact text matches for children regardless of context, you should use a List entity. If you are looking for a parent-child relationship with other entity types, you should use the Composite entity.<br/><br/>[Quickstart](luis-quickstart-intent-and-hier-entity.md)<br>[Example response for entity](luis-concept-data-extraction.md#hierarchical-entity-data)|
6869

6970
<a name="prebuilt"></a>
7071
**Prebuilt** entities are custom entities provided by LUIS. Some of these entities are defined in the open-source [Recognizers-Text](https://github.com/Microsoft/Recognizers-Text) project. There are many [examples](https://github.com/Microsoft/Recognizers-Text/tree/master/Specs) in the /Specs directory for the supported cultures. If your specific culture or entity isn't currently supported, contribute to the project.
@@ -81,7 +82,6 @@ LUIS offers many types of entities; prebuilt entities, custom machine learned en
8182
<a name="mixed"></a>
8283
**Mixed** entities use a combination of entity detection methods.
8384

84-
8585
## Entity limits
8686
Review [limits](luis-boundaries.md#model-boundaries) to understand how many of each type of entity you can add to a model.
8787

0 commit comments

Comments
 (0)