Skip to content

Commit d001e05

Browse files
authored
Merge pull request #104465 from diberry/diberry/0214-fresh-1
[Cogsvcs] Fresh - 1
2 parents 340c91e + 1de75e5 commit d001e05

7 files changed

+10
-52
lines changed

articles/cognitive-services/LUIS/get-started-get-model-rest-apis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
title: "Quickstart: Get intent with REST APIs - LUIS"
33
titleSuffix: Azure Cognitive Services
4-
description: In this REST API quickstart, use an available public LUIS app to determine a user's intention from conversational text.
4+
description: In this REST API quickstart, use an available public LUIS app to determine a user's intention from conversational text.
55
services: cognitive-services
66
author: diberry
77
manager: nitinme
88
ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: language-understanding
1111
ms.topic: quickstart
12-
ms.date: 10/18/2019
12+
ms.date: 02/14/2020
1313
ms.author: diberry
1414
zone_pivot_groups: programming-languages-set-one
1515
#Customer intent: As an API developer familiar with REST but new to the LUIS service, I want to query the LUIS endpoint of a published model so that I can see the JSON prediction response.
1616
---
1717

18-
# Quickstart: Get intent with REST APIs
18+
# Quickstart: Change model with REST APIs
1919

2020
In this quickstart, add example utterances to a Travel Agent app and train the app. Example utterances are conversational user text mapped to an intent. By providing example utterances for intents, you teach LUIS what kinds of user-supplied text belongs to which intent.
2121

articles/cognitive-services/LUIS/includes/get-started-get-model-rest-csharp.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ ms.author: diberry
2525

2626
## Change model programmatically
2727

28-
Use C# to add a machine-learned entity [API](https://aka.ms/luis-apim-v3-authoring) to the application.
29-
3028
1. Create a new console application targeting the C# language, with a project and folder name of `model-with-rest`.
3129

3230
```console

articles/cognitive-services/LUIS/includes/get-started-get-model-rest-go.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ ms.author: diberry
2525

2626
## Change model programmatically
2727

28-
Use Go to add a machine-learned entity [API](https://aka.ms/luis-apim-v3-authoring) to the application.
29-
3028
1. Create a new file named `predict.go`. Add the following code:
3129

3230
```go

articles/cognitive-services/LUIS/includes/get-started-get-model-rest-java.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ ms.author: diberry
2424

2525
## Change model programmatically
2626

27-
Use Go to add a machine-learned entity [API](https://aka.ms/luis-apim-v3-authoring) to the application.
28-
2927
1. Make a subdirectory named `lib` and copy in the following java libs:
3028

3129
* [commons-logging-1.2.jar](https://raw.githubusercontent.com/Azure-Samples/cognitive-services-language-understanding/master/documentation-samples/quickstarts/analyze-text/java/lib/commons-logging-1.2.jar)

articles/cognitive-services/LUIS/includes/get-started-get-model-rest-nodejs.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ ms.author: diberry
2525

2626
## Change model programmatically
2727

28-
Use Go to add a machine-learned entity [API](https://aka.ms/luis-apim-v3-authoring) to the application.
29-
3028
1. Create a new file named `model.js`. Add the following code:
3129

3230
```javascript

articles/cognitive-services/LUIS/includes/get-started-get-model-rest-python.md

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: diberry
66
manager: nitinme
77
ms.service: cognitive-services
88
ms.topic: include
9-
ms.date: 01/31/2020
9+
ms.date: 02/14/2020
1010
ms.author: diberry
1111
---
1212

@@ -23,49 +23,11 @@ ms.author: diberry
2323

2424
[!INCLUDE [Quickstart explanation of example utterance JSON file](get-started-get-model-json-example-utterances.md)]
2525

26-
2726
## Change model programmatically
2827

29-
Use Go to add a machine-learned entity [API](https://aka.ms/luis-apim-v3-authoring) to the application.
30-
3128
1. Create a new file named `model.py`. Add the following code:
3229

33-
```python
34-
########### Python 3.6 #############
35-
import requests
36-
37-
# 32 character Authoring key
38-
LUIS_authoringKey = "YOUR-KEY"
39-
40-
LUIS_APP_ID = "YOUR-APP-ID"
41-
42-
# Authoring endpoint, example: your-resource-name.api.cognitive.microsoft.com
43-
LUIS_ENDPOINT = "YOUR-ENDPOINT"
44-
45-
# The version number of your LUIS app
46-
LUIS_APP_VERSION = "0.1"
47-
48-
URI_AddUtterances = f'https://{LUIS_ENDPOINT}/luis/authoring/v3.0-preview/apps/{LUIS_APP_ID}/versions/{LUIS_APP_VERSION}/examples'
49-
URI_Train = f'https://{LUIS_ENDPOINT}/luis/authoring/v3.0-preview/apps/{LUIS_APP_ID}/versions/{LUIS_APP_VERSION}/train'
50-
51-
HEADERS = {'Ocp-Apim-Subscription-Key': LUIS_authoringKey}
52-
53-
def addUtterances():
54-
r = requests.post(URI_AddUtterances,headers=HEADERS)
55-
print(r.json())
56-
57-
def train():
58-
r = requests.post(URI_Train,headers=HEADERS)
59-
print(r.json())
60-
61-
def trainStatus():
62-
r = requests.get(URI_Train,headers=HEADERS)
63-
print(r.json())
64-
65-
addUtterances()
66-
train()
67-
trainStatus()
68-
```
30+
[!code-python[Add example utterances to Language Understanding in python](~/samples-luis/documentation-samples/quickstarts/change-model/python/3.x/add-utterances-3-6.py)]
6931

7032
1. Replace the values starting with `YOUR-` with your own values.
7133

articles/cognitive-services/QnAMaker/whats-new.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: qna-maker
1010
ms.topic: overview
11-
ms.date: 11/08/2019
11+
ms.date: 02/14/2020
1212
ms.author: diberry
1313
---
1414

@@ -20,6 +20,10 @@ Learn what's new in the service. These items may release notes, videos, blog pos
2020

2121
Learn what's new with QnA Maker.
2222

23+
### February 2020
24+
25+
* [NPM package](https://www.npmjs.com/package/@azure/cognitiveservices-qnamaker) with GenerateAnswer API
26+
2327
### November 2019
2428

2529
* [US Government cloud support](https://docs.microsoft.com/azure/azure-government/documentation-government-services-aiandcognitiveservices#qna-maker) for QnA Maker

0 commit comments

Comments
 (0)