Skip to content

Commit 2814a90

Browse files
committed
[Cogsvs] LUIS - fresh 2 - roles tutorial
1 parent 80a014c commit 2814a90

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

articles/cognitive-services/LUIS/tutorial-entity-roles.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
---
22
title: "Tutorial: Contextual data with roles - LUIS"
3-
titleSuffix: Azure Cognitive Services
43
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-
services: cognitive-services
6-
author: diberry
7-
manager: nitinme
8-
ms.custom: seodec18
9-
ms.service: cognitive-services
10-
ms.subservice: language-understanding
114
ms.topic: tutorial
12-
ms.date: 12/17/2019
13-
ms.author: diberry
5+
ms.date: 03/30/2020
146
#Customer intent: As a new user, I want to understand how and why to use roles on an entity.
157
---
168

179
# Tutorial: Extract contextually related data from an utterance
1810

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.
11+
In this tutorial, find related pieces of data based on context. For example, 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.
2012

2113
A role can be used with any prebuilt or custom entity type, and used in both example utterances and patterns.
2214

@@ -45,24 +37,26 @@ A role should be used when the entity data to extract:
4537

4638
## Create a new app
4739

48-
1. Sign in to the preview LUIS portal with the URL of [https://preview.luis.ai](https://preview.luis.ai).
40+
1. Sign in to the [LUIS **preview** portal](https://preview.luis.ai).
4941

50-
1. Select **Create new app**, enter the name `HumanResources` and keep the default culture, **English**. Leave the description empty.
51-
52-
1. Select **Done**.
42+
1. Select **+ New app for conversation**, enter the name `HumanResources` and keep the default culture, **English**. Leave the description and prediction resource empty. Select **Done**.
5343

5444
## Create an intent to move employees between cities
5545

46+
An intent is used to classify user utterances based on the user's intention, determined from the natural language text.
47+
48+
In order to classify an utterance, the intent needs examples of user utterances that should be classified with this intent.
49+
5650
1. [!INCLUDE [Start in Build section](../../../includes/cognitive-services-luis-tutorial-build-section.md)]
5751

58-
1. Select **Create new intent**.
52+
1. Select **+ Create**.
5953

6054
1. Enter `MoveEmployeeToCity` in the pop-up dialog box then select **Done**.
6155

6256
> [!div class="mx-imgBorder"]
6357
> ![Screenshot of create new intent dialog with](./media/tutorial-entity-roles/create-new-intent-move-employee-to-city.png)
6458
65-
1. Add example utterances to the intent.
59+
1. Add several example utterances to this intent that you expect a user to ask.
6660

6761
|Example utterances|
6862
|--|
@@ -81,18 +75,18 @@ A role should be used when the entity data to extract:
8175
8276
## Add prebuilt entity geographyV2
8377

84-
The prebuilt entity, geographyV2, extracts location information, including city names. Since the utterances have two city names, relating to each other in context, use roles to extract that context.
78+
The prebuilt entity, **geographyV2**, extracts location information, including city names. Since the utterances have two city names, relating to each other in context, use roles to extract that context.
8579

8680
1. Select **Entities** from the left-side navigation.
8781

88-
1. Select **Add prebuilt entity**, then select `geo` in the search bar to filter the prebuilt entities.
82+
1. Select **+ Add prebuilt entity**, then enter `geo` in the search bar to filter the prebuilt entities.
8983

9084
> [!div class="mx-imgBorder"]
9185
> ![Add geographyV2 prebuilt entity to app](media/tutorial-entity-roles/add-geographyV2-prebuilt-entity.png)
9286
9387
1. Select the checkbox and select **Done**.
9488
1. In the **Entities** list, select the **geographyV2** to open the new entity.
95-
1. Add two roles, `Origin`, and `Destination`.
89+
1. To add a role, select Add two roles, `Origin`, and `Destination`.
9690

9791
> [!div class="mx-imgBorder"]
9892
> ![Add roles to prebuilt entity](media/tutorial-entity-roles/add-roles-to-prebuilt-entity.png)

0 commit comments

Comments
 (0)