You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This article applies to the existing LUIS portal only. Do not use this article with the preview LUIS portal. The same apps are available in both portals.
Copy file name to clipboardExpand all lines: articles/cognitive-services/LUIS/luis-tutorial-composite-entity.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,30 +9,30 @@ ms.custom: seodec18
9
9
ms.service: cognitive-services
10
10
ms.subservice: language-understanding
11
11
ms.topic: tutorial
12
-
ms.date: 10/14/2019
12
+
ms.date: 12/05/2019
13
13
ms.author: diberry
14
14
---
15
15
16
16
# Tutorial: Group and extract related data
17
17
In this tutorial, add a composite entity to bundle extracted data of various types into a single containing entity. By bundling the data, the client application can easily extract related data in different data types.
18
18
19
-
The purpose of the composite entity is to group related entities into a parent category entity. The information exists as separate entities before a composite is created.
19
+
The purpose of the composite entity is to group related entities into a parent category entity. The information exists as separate entities before a composite is created.
20
20
21
21
The composite entity is a good fit for this type of data because the data:
22
22
23
-
* Are related to each other.
23
+
* Are related to each other.
24
24
* Use a variety of entity types.
25
25
* Need to be grouped and processed by client app as a unit of information.
26
26
27
-
[!INCLUDE [Waiting for LUIS portal refresh](./includes/wait-v3-upgrade.md)]
27
+
[!INCLUDE [Only valid with current portal](includes/old-portal-only.md)]
28
28
29
29
**In this tutorial, you learn how to:**
30
30
31
31
<!-- green checkmark -->
32
32
> [!div class="checklist"]
33
33
> * Import example app
34
34
> * Create intent
35
-
> * Add composite entity
35
+
> * Add composite entity
36
36
> * Train
37
37
> * Publish
38
38
> * Get intents and entities from endpoint
@@ -49,22 +49,22 @@ The composite entity is a good fit for this type of data because the data:
49
49
50
50
## Composite entity
51
51
52
-
In this app, the department name is defined in the **Department** list entity and includes synonyms.
52
+
In this app, the department name is defined in the **Department** list entity and includes synonyms.
53
53
54
-
The **TransferEmployeeToDepartment** intent has example utterances to request an employee be moved to a new department.
54
+
The **TransferEmployeeToDepartment** intent has example utterances to request an employee be moved to a new department.
55
55
56
56
Example utterances for this intent include:
57
57
58
58
|Example utterances|
59
59
|--|
60
60
|move John W. Smith to the accounting department|
61
61
|transfer Jill Jones from to R&D|
62
-
63
-
The move request should include the department name, and the employee name.
62
+
63
+
The move request should include the department name, and the employee name.
64
64
65
65
## Add the PersonName prebuilt entity to help with common data type extraction
66
66
67
-
LUIS provides several prebuilt entities for common data extraction.
67
+
LUIS provides several prebuilt entities for common data extraction.
68
68
69
69
1. Select **Build** from the top navigation, then select **Entities** from the left navigation menu.
70
70
@@ -82,11 +82,11 @@ LUIS provides several prebuilt entities for common data extraction.
82
82
83
83
1. Select **TransferEmployeeToDepartment** from the intents list.
84
84
85
-
1. In the utterance `place John Jackson in engineering`, select the personName entity, `John Jackson`, then select **Wrap in composite entity** in the pop-up menu list for the following utterance.
85
+
1. In the utterance `place John Jackson in engineering`, select the personName entity, `John Jackson`, then select **Wrap in composite entity** in the pop-up menu list for the following utterance.
86
86
87
87

88
88
89
-
1. Then immediately select the last entity, `engineering` in the utterance. A green bar is drawn under the selected words indicating a composite entity. In the pop-up menu, enter the composite name `TransferEmployeeInfo` then select enter.
89
+
1. Then immediately select the last entity, `engineering` in the utterance. A green bar is drawn under the selected words indicating a composite entity. In the pop-up menu, enter the composite name `TransferEmployeeInfo` then select enter.
90
90
91
91

92
92
@@ -98,23 +98,23 @@ LUIS provides several prebuilt entities for common data extraction.
98
98
99
99
1. In each example utterance, select the left-most entity that should be in the composite. Then select **Wrap in composite entity**.
100
100
101
-
1. Select the last word in the composite entity then select **TransferEmployeeInfo** from the pop-up menu.
101
+
1. Select the last word in the composite entity then select **TransferEmployeeInfo** from the pop-up menu.
102
102
103
-
1. Verify all utterances in the intent are labeled with the composite entity.
103
+
1. Verify all utterances in the intent are labeled with the composite entity.
104
104
105
-
## Train the app so the changes to the intent can be tested
105
+
## Train the app so the changes to the intent can be tested
106
106
107
107
[!INCLUDE [LUIS How to Train steps](../../../includes/cognitive-services-luis-tutorial-how-to-train.md)]
108
108
109
109
## Publish the app so the trained model is queryable from the endpoint
110
110
111
111
[!INCLUDE [LUIS How to Publish steps](../../../includes/cognitive-services-luis-tutorial-how-to-publish.md)]
112
112
113
-
## Get intent and entity prediction from endpoint
113
+
## Get intent and entity prediction from endpoint
114
114
115
115
1.[!INCLUDE [LUIS How to get endpoint first step](../../../includes/cognitive-services-luis-tutorial-how-to-get-endpoint.md)]
116
116
117
-
2. Go to the end of the URL in the address and enter `Move Jill Jones to DevOps`. The last querystring parameter is `q`, the utterance query.
117
+
2. Go to the end of the URL in the address and enter `Move Jill Jones to DevOps`. The last querystring parameter is `q`, the utterance query.
118
118
119
119
Since this test is to verify the composite is extracted correctly, a test can either include an existing sample utterance or a new utterance. A good test is to include all the child entities in the composite entity.
120
120
@@ -180,7 +180,7 @@ LUIS provides several prebuilt entities for common data extraction.
180
180
}
181
181
```
182
182
183
-
This utterance returns a composite entities array. Each entity is given a type and value. To find more precision for each child entity, use the combination of type and value from the composite array item to find the corresponding item in the entities array.
183
+
This utterance returns a composite entities array. Each entity is given a type and value. To find more precision for each child entity, use the combination of type and value from the composite array item to find the corresponding item in the entities array.
184
184
185
185
## Clean up resources
186
186
@@ -197,7 +197,7 @@ LUIS provides several prebuilt entities for common data extraction.
197
197
198
198
## Next steps
199
199
200
-
This tutorial created a composite entity to encapsulate existing entities. This allows the client application to find a group of related data in different datatypes to continue the conversation. A client application for this Human Resources app could ask what day and time the move needs to begin and end. It could also ask about other logistics of the move such as a physical phone.
200
+
This tutorial created a composite entity to encapsulate existing entities. This allows the client application to find a group of related data in different datatypes to continue the conversation. A client application for this Human Resources app could ask what day and time the move needs to begin and end. It could also ask about other logistics of the move such as a physical phone.
201
201
202
-
> [!div class="nextstepaction"]
203
-
> [Learn how to add a simple entity with a phrase list](luis-quickstart-primary-and-secondary-data.md)
202
+
> [!div class="nextstepaction"]
203
+
> [Learn how to add a simple entity with a phrase list](luis-quickstart-primary-and-secondary-data.md)
Copy file name to clipboardExpand all lines: articles/cognitive-services/LUIS/tutorial-entity-roles.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,32 @@
1
1
---
2
2
title: "Tutorial: Contextual data with roles - LUIS"
3
3
titleSuffix: Azure Cognitive Services
4
-
description: Find related data based on context. For example, an origin and destination locations for a physical move from one building and office to another building and office are related.
4
+
description: Find related data based on context. For example, an origin and destination locations for a physical move from one building and office to another building and office are related.
5
5
services: cognitive-services
6
6
author: diberry
7
7
manager: nitinme
8
8
ms.custom: seodec18
9
9
ms.service: cognitive-services
10
10
ms.subservice: language-understanding
11
11
ms.topic: tutorial
12
-
ms.date: 10/14/2019
12
+
ms.date: 12/05/2019
13
13
ms.author: diberry
14
-
#Customer intent: As a new user, I want to understand how and why to use roles on an entity.
14
+
#Customer intent: As a new user, I want to understand how and why to use roles on an entity.
15
15
---
16
16
17
17
# Tutorial: Extract contextually related data from an utterance
18
18
19
-
In this tutorial, find related pieces of data based on context. For example, an origin and destination locations for a transfer from one city to another. Both pieces of data may be required and they are related to each other.
19
+
In this tutorial, find related pieces of data based on context. For example, an origin and destination locations for a transfer from one city to another. Both pieces of data may be required and they are related to each other.
20
20
21
-
A role can be used with any prebuilt or custom entity type, and used in both example utterances and patterns.
21
+
A role can be used with any prebuilt or custom entity type, and used in both example utterances and patterns.
22
22
23
-
[!INCLUDE [Waiting for LUIS portal refresh](./includes/wait-v3-upgrade.md)]
23
+
[!INCLUDE [Only valid with current portal](includes/old-portal-only.md)]
24
24
25
25
**In this tutorial, you learn how to:**
26
26
27
27
> [!div class="checklist"]
28
28
> * Create new app
29
-
> * Add intent
29
+
> * Add intent
30
30
> * Get origin and destination information using roles
31
31
> * Train
32
32
> * Publish
@@ -53,9 +53,9 @@ A role should be used when the entity data to extract:
53
53
54
54
1.[!INCLUDE [Start in Build section](../../../includes/cognitive-services-luis-tutorial-build-section.md)]
55
55
56
-
1. Select **Create new intent**.
56
+
1. Select **Create new intent**.
57
57
58
-
1. Enter `MoveEmployeeToCity` in the pop-up dialog box then select **Done**.
58
+
1. Enter `MoveEmployeeToCity` in the pop-up dialog box then select **Done**.
59
59
60
60

61
61
@@ -81,24 +81,24 @@ The prebuilt entity, geographyV2, extracts location information, including city
81
81
82
82
1. Select **Entities** from the left-side navigation.
83
83
84
-
1. Select **Add prebuilt entity**, then select `geo` in the search bar to filter the prebuilt entities.
84
+
1. Select **Add prebuilt entity**, then select `geo` in the search bar to filter the prebuilt entities.
85
85
86
86

87
87
1. Select the checkbox and select **Done**.
88
-
1. In the **Entities** list, select the **geographyV2** to open the new entity.
89
-
1. Add two roles, `Origin`, and `Destination`.
88
+
1. In the **Entities** list, select the **geographyV2** to open the new entity.
89
+
1. Add two roles, `Origin`, and `Destination`.
90
90
91
91

92
92
1. Select **Intents** from the left-side navigation, then select the **MoveEmployeeToCity** intent. Notice the city names are labeled with the prebuilt entity **geographyV2**.
93
93
1. In the first utterance of the list, select the origin location. A drop-down menu appears. Select **geographyV2** in the list, then follow the menu across to select **Origin**.
94
-
1. Use the method from the previous step to mark all roles of locations in all the utterances.
94
+
1. Use the method from the previous step to mark all roles of locations in all the utterances.
95
95
96
96
97
-
## Add example utterances to the None intent
97
+
## Add example utterances to the None intent
98
98
99
99
[!INCLUDE [Follow these steps to add the None intent to the app](../../../includes/cognitive-services-luis-create-the-none-intent.md)]
100
100
101
-
## Train the app so the changes to the intent can be tested
101
+
## Train the app so the changes to the intent can be tested
102
102
103
103
[!INCLUDE [LUIS How to Train steps](../../../includes/cognitive-services-luis-tutorial-how-to-train.md)]
104
104
@@ -148,9 +148,9 @@ The prebuilt entity, geographyV2, extracts location information, including city
148
148
]
149
149
}
150
150
```
151
-
151
+
152
152
The correct intent is predicted and the entities array has both the origin and destination roles in the corresponding **entities** property.
153
-
153
+
154
154
## Clean up resources
155
155
156
156
[!INCLUDE [LUIS How to clean up resources](../../../includes/cognitive-services-luis-tutorial-how-to-clean-up-resources.md)]
@@ -169,5 +169,5 @@ The prebuilt entity, geographyV2, extracts location information, including city
169
169
170
170
This tutorial created a new intent and added example utterances for the contextually learned data of origin and destination locations. Once the app is trained and published, a client-application can use that information to create a move ticket with the relevant information.
171
171
172
-
> [!div class="nextstepaction"]
173
-
> [Learn how to add a composite entity](luis-tutorial-composite-entity.md)
172
+
> [!div class="nextstepaction"]
173
+
> [Learn how to add a composite entity](luis-tutorial-composite-entity.md)
0 commit comments