Skip to content

Commit 49fa883

Browse files
authored
Merge pull request #96278 from diberry/diberry/1118-luis-howto-test
[Cogsvcs] LUIS - howto test
2 parents d1ed2fe + 99bd4db commit 49fa883

File tree

7 files changed

+27
-9
lines changed

7 files changed

+27
-9
lines changed

articles/cognitive-services/LUIS/luis-concept-data-alteration.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,27 @@ ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: language-understanding
1111
ms.topic: conceptual
12-
ms.date: 09/26/2019
12+
ms.date: 11/19/2019
1313
ms.author: diberry
1414
---
1515

1616
# Alter utterance data before or during prediction
1717
LUIS provides ways to manipulate the utterance before or during the prediction. These include [fixing spelling](luis-tutorial-bing-spellcheck.md), and fixing timezone issues for prebuilt [datetimeV2](luis-reference-prebuilt-datetimev2.md).
1818

1919
## Correct spelling errors in utterance
20+
21+
[!INCLUDE [Not supported in V3 API prediction endpoint](./includes/v2-support-only.md)]
22+
23+
2024
LUIS uses [Bing Spell Check API V7](../Bing-Spell-Check/overview.md) to correct spelling errors in the utterance. LUIS needs the key associated with that service. Create the key, then add the key as a querystring parameter at the [endpoint](https://go.microsoft.com/fwlink/?linkid=2092356).
2125

26+
<!--
2227
You can also correct spelling errors in the **Test** panel by [entering the key](luis-interactive-test.md#view-bing-spell-check-corrections-in-test-panel). The key is kept as a session variable in the browser for the Test panel. Add the key to the Test panel in each browser session you want spelling corrected.
2328
2429
Usage of the key in the test panel and at the endpoint count toward the [key usage](https://azure.microsoft.com/pricing/details/cognitive-services/spellcheck-api/) quota. LUIS implements Bing Spell Check limits for text length.
2530
31+
-->
32+
2633
The endpoint requires two params for spelling corrections to work:
2734

2835
|Param|Value|

articles/cognitive-services/LUIS/luis-interactive-test.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,36 @@ ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: language-understanding
1111
ms.topic: conceptual
12-
ms.date: 07/29/2019
12+
ms.date: 11/19/2019
1313
ms.author: diberry
1414
---
1515

1616
# Test your LUIS app in the LUIS portal
1717

1818
[Testing](luis-concept-test.md) an app is an iterative process. After training your LUIS app, test it with sample utterances to see if the intents and entities are recognized correctly. If they're not, make updates to the LUIS app, train, and test again.
1919

20-
[!INCLUDE [Waiting for LUIS portal refresh](./includes/wait-v3-upgrade.md)]
20+
[!INCLUDE [Uses preview portal](includes/uses-portal-preview.md)]
2121

2222
<!-- anchors for H2 name changes -->
2323
<a name="train-your-app"></a>
2424
<a name="test-your-app"></a>
2525
<a name="access-the-test-page"></a>
2626
<a name="luis-interactive-testing"></a>
2727

28+
## Train before testing
29+
30+
In order to test against the most recent version of the active app, select **Train** from the top menu, before testing.
31+
2832
## Test an utterance
2933

34+
The test utterance should not be exactly the same as any example utterances in the app. The test utterance should include word choice, phrase length, and entity usage you expect for a user.
35+
3036
1. Access your app by selecting its name on the **My Apps** page.
3137

3238
1. To access the **Test** slide-out panel, select **Test** in your application's top panel.
3339

34-
![Train & Test App page](./media/luis-how-to-interactive-test/test.png)
40+
> [!div class="mx-imgBorder"]
41+
> ![Train & Test App page](./media/luis-how-to-interactive-test/test.png)
3542
3643
1. Enter an utterance in the text box and select Enter. You can type as many test utterances as you want in the **Test**, but only one utterance at a time.
3744

@@ -87,10 +94,11 @@ You can view the endpoint JSON returned for the comparison by selecting the **Sh
8794

8895
If you have several LUIS endpoints, use the **Additional Settings** link on the Test's Published pane to change the endpoint used for testing. If you are not sure which endpoint to use, select the default **Starter_Key**.
8996

90-
![Test panel with Additional Settings link highlighted](./media/luis-how-to-interactive-test/interactive-with-spell-check-service-key.png)
91-
97+
> [!div class="mx-imgBorder"]
98+
> ![Test panel with Additional Settings link highlighted](media/luis-how-to-interactive-test/additional-settings-v3-settings.png)
9299
93-
### View Bing Spell Check corrections in test panel
100+
<!--
101+
### View Bing Spell Check corrections in test panel
94102
95103
Requirements to view the spelling corrections:
96104
@@ -120,6 +128,7 @@ Use the following procedure to include the [Bing Spell Check v7](https://azure.m
120128
<a name="view single-point utterance data"></a>
121129
<a name="relabel-utterances-and-retrain"></a>
122130
<a name="false-test-results"></a>
131+
-->
123132

124133
## Batch testing
125134
See batch testing [concepts](luis-concept-batch-test.md) and learn [how to](luis-how-to-batch-test.md) test a batch of utterances.

articles/cognitive-services/LUIS/luis-tutorial-bing-spellcheck.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: language-understanding
1111
ms.topic: conceptual
12-
ms.date: 11/15/2019
12+
ms.date: 11/19/2019
1313
ms.author: diberry
1414
---
1515

@@ -21,6 +21,7 @@ You can integrate your LUIS app with [Bing Spell Check API V7](https://azure.mic
2121

2222

2323
## Create first key for Bing Spell Check V7
24+
2425
Your [first Bing Spell Check API v7 key](https://azure.microsoft.com/try/cognitive-services/?api=spellcheck-api) is free.
2526

2627
![Create free key](./media/luis-tutorial-bing-spellcheck/free-key.png)
@@ -56,9 +57,10 @@ If your free key expired, create an endpoint key.
5657

5758
10. Copy the first key. You only need one of the two keys.
5859

60+
<!--
5961
## Using the key in LUIS test panel
6062
There are two places in LUIS to use the key. The first is in the [test panel](luis-interactive-test.md#view-bing-spell-check-corrections-in-test-panel). The key isn't saved into LUIS but instead is a session variable. You need to set the key every time you want the test panel to apply the Bing Spell Check API v7 service to the utterance. See [instructions](luis-interactive-test.md#view-bing-spell-check-corrections-in-test-panel) in the test panel for setting the key.
61-
63+
-->
6264
## Adding the key to the endpoint URL
6365
The endpoint query needs the key passed in the query string parameters for each query you want to apply spelling correction. You may have a chatbot that calls LUIS or you may call the LUIS endpoint API directly. Regardless of how the endpoint is called, each and every call must include the required information for spelling corrections to work properly.
6466

14.6 KB
Loading
-122 Bytes
Loading
-531 Bytes
Loading
14.6 KB
Loading

0 commit comments

Comments
 (0)