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
Copy file name to clipboardExpand all lines: articles/ai-services/language-service/conversational-language-understanding/how-to/build-schema.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.author: jboback
11
11
ms.custom: language-service-clu
12
12
---
13
13
14
-
# How to build your project schema
14
+
# How to build your fine-tuning schema
15
15
16
16
In conversational language understanding projects, the *schema* is defined as the combination of intents and entities within your project. Schema design is a crucial part of your project's success. When creating a schema, you want think about which intents and entities should be included in your project.
17
17
@@ -39,53 +39,55 @@ They might create an intent to represent each of these actions. They might also
39
39
40
40
## Add intents
41
41
42
-
To build a project schema within [Language Studio](https://aka.ms/languageStudio):
42
+
To build a project schema within [AI Foundry](https://ai.azure.com):
43
43
44
-
1. Select **Schema definition** from the left side menu.
44
+
1. Select **Define schema** from the left side menu.
45
45
46
46
2. From the top pivots, you can change the view to be **Intents** or **Entities**.
47
47
48
-
2. To create an intent, select **Add** from the top menu. You will be prompted to type in a name before completing creating the intent.
48
+
3. To create an intent, select **+ Add intent**. You will be prompted to type in names and descriptions for as many intents as you'd like to create. Descriptions are only required for using Quick Deploy to help Azure OpenAI better understand the context of your intents.
49
49
50
-
3. Repeat the above step to create all the intents to capture all the actions that you think the user will want to perform while using the project.
50
+
4. Repeat the above step to create all the intents to capture all the actions that you think the user will want to perform while using the project.
51
51
52
52
:::image type="content" source="../media/build-schema-page.png" alt-text="A screenshot showing the schema creation page for conversation projects in Language Studio." lightbox="../media/build-schema-page.png":::
53
53
54
-
4. When you select the intent, you will be directed to the [Data labeling](tag-utterances.md)page, with a filter set for the intent you selected. You can add examples for intents and label them with entities.
54
+
5. If you'd like to continue with [data labeling](tag-utterances.md)and advanced training a custom CLU model, you can select **Manage data** from the left side menu to add examples for intents and label them with entities, if desired.
55
55
56
56
## Add entities
57
57
58
58
1. Move to **Entities** pivot from the top of the page.
59
59
60
-
2. To add an entity, select **Add** from the top menu. You will be prompted to type in a name before completing creating the entity.
60
+
2. To add an entity, select **+ Add entity** from the top. You will be prompted to type in a name to create the entity.
61
61
62
-
3. After creating an entity, you'll be routed to the entity details page where you can define the composition settings for this entity.
63
-
64
-
4. Every entity can be defined by multiple components: learned, list or prebuilt. A learned component is added to all your entities once you label them in your utterances.
62
+
3. After creating an entity, you can select the entity name to change the **Entity components** type. Every entity can be defined by multiple components: learned, list, regex, or prebuilt. A learned component is added to all your entities once you label them in your utterances.
65
63
66
64
:::image type="content" source="../media/entity-details.png" alt-text="A screenshot showing the entity details page for conversation projects in Language Studio." lightbox="../media/entity-details.png":::
67
65
68
-
5.You can add a [list](../concepts/entity-components.md#list-component) or [prebuilt](../concepts/entity-components.md#prebuilt-component) component to each entity.
66
+
5.You can also add a [list](../concepts/entity-components.md#list-component), [regex](../concepts/entity-components.md#regex-component), or [prebuilt](../concepts/entity-components.md#prebuilt-component) component to each entity.
69
67
70
68
### Add prebuilt component
71
69
72
-
To add a **prebuilt** component, select **Add new prebuilt** and from the drop-down menu, select the prebuilt type to you want to add to this entity.
70
+
To add a **prebuilt** component, select the prebuilt type from the drop-down menu in the Entity options section.
73
71
74
72
<!--:::image type="content" source="../media/add-prebuilt-component.png" alt-text="A screenshot showing a prebuilt-component in Language Studio." lightbox="../media/add-prebuilt-component.png":::-->
75
73
76
74
### Add list component
77
75
78
-
To add a **list** component, select **Add new list**. You can add multiple lists to each entity.
76
+
To add a **list** component, select **Add list**. You can add multiple lists to each entity.
79
77
80
-
1. To create a new list, in the *Enter value* text box enter this is the normalized value that will be returned when any of the synonyms values is extracted.
78
+
1. To create a new list, in the *List key* text box, enter the normalized value that will be returned when any of the synonyms values is extracted.
81
79
82
-
2.From the *language* drop-down menu, select the language of the synonyms list and start typing in your synonyms and hit enter after each one. It is recommended to have synonyms lists in multiple languages.
80
+
2.Start typing in your synonyms and hit enter after each one. It is recommended to have synonyms lists in multiple languages.
83
81
84
82
<!--:::image type="content" source="../media/add-list-component.png" alt-text="A screenshot showing a list component in Language Studio." lightbox="../media/add-list-component.png":::-->
83
+
84
+
### Add regex component
85
+
86
+
To add a regex component, select Add expression. Name the regex key and type a regular expression that matches the entity to be extracted.
85
87
86
88
### Define entity options
87
89
88
-
Change to the **Entity options** pivot in the entity details page. When multiple components are defined for an entity, their predictions may overlap. When an overlap occurs, each entity's final prediction is determined based on the [entity option](../concepts/entity-components.md#entity-options) you select in this step. Select the one that you want to apply to this entity and select the **Save** button at the top.
90
+
Change to the **Entity options** pivot in the entity details page. When multiple components are defined for an entity, their predictions may overlap. When an overlap occurs, each entity's final prediction is determined based on the [entity option](../concepts/entity-components.md#entity-options) you select in this step. Select the one that you want to apply to this entity and select the **Save** button.
89
91
90
92
<!--:::image type="content" source="../media/entity-options.png" alt-text="A screenshot showing an entity option in Language Studio." lightbox="../media/entity-options.png":::-->
0 commit comments