Skip to content

Commit 1d0ba6b

Browse files
committed
Minor alignment edits for the Java quickstart.
1 parent 5de1714 commit 1d0ba6b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

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

Lines changed: 2 additions & 2 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: 10/17/2019
9+
ms.date: 11/20/2019
1010
ms.author: diberry
1111
---
1212

@@ -22,7 +22,7 @@ ms.author: diberry
2222

2323
## Get intent programmatically
2424

25-
Use C# to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-prediction) to get the prediction result.
25+
Use C# (.NET Core) to query the [prediction endpoint](https://aka.ms/luis-apim-v3-prediction) and get a prediction result.
2626

2727
1. Create a new console application targeting the C# language, with a project and folder name of `predict-with-rest`.
2828

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

Lines changed: 5 additions & 6 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: 10/17/2019
9+
ms.date: 11/20/2019
1010
ms.author: diberry
1111
---
1212
## Prerequisites
@@ -21,7 +21,7 @@ ms.author: diberry
2121

2222
## Get intent programmatically
2323

24-
Use Java to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-prediction) to get the prediction result.
24+
Use Java to query the [prediction endpoint](https://aka.ms/luis-apim-v3-prediction) and get a prediction result.
2525

2626
1. Make a subdirectory named `lib` and copy in the following java libs:
2727

@@ -31,7 +31,6 @@ Use Java to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-
3131

3232
1. Copy the following code to create a class in a file named `Predict.java`:
3333

34-
3534
```java
3635
import java.io.*;
3736
import java.net.URI;
@@ -102,10 +101,10 @@ Use Java to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-
102101
1. Replace the following values:
103102

104103
* `YOUR-KEY` with your starter key
105-
* `YOUR-ENDPOINT` with your endpoint, for example, `westus2.api.cognitive.microsoft.com`
104+
* `YOUR-ENDPOINT` with your endpoint. For example, `westus2.api.cognitive.microsoft.com`.
106105

107106

108-
1. Compile the java program from a command line:
107+
1. Compile the java program from the command line:
109108

110109
```console
111110
javac -cp ":lib/*" Predict.java
@@ -117,7 +116,7 @@ Use Java to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-
117116
java -cp ":lib/*" Predict
118117
```
119118

120-
1. Review prediction response in JSON format:
119+
1. Review the prediction response, which is returned as JSON:
121120

122121
```console
123122
{'query': 'turn on all lights', 'prediction': {'topIntent': 'HomeAutomation.TurnOn', 'intents': {'HomeAutomation.TurnOn': {'score': 0.5375382}, 'None': {'score': 0.08687421}, 'HomeAutomation.TurnOff': {'score': 0.0207554}}, 'entities': {'HomeAutomation.Operation': ['on'], '$instance': {'HomeAutomation.Operation': [{'type': 'HomeAutomation.Operation', 'text': 'on', 'startIndex': 5, 'length': 2, 'score': 0.724984169, 'modelTypeId': -1, 'modelType': 'Unknown', 'recognitionSources': ['model']}]}}}}

0 commit comments

Comments
 (0)