Skip to content

Commit e1176ca

Browse files
committed
add new json
1 parent 8e02948 commit e1176ca

File tree

1 file changed

+41
-28
lines changed

1 file changed

+41
-28
lines changed

articles/cognitive-services/LUIS/tutorial-publish-settings.md

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -72,40 +72,53 @@ Because it is a publish setting, you do not see it on the intents or entities pa
7272

7373
```json
7474
{
75-
"query": "Jill Jones work with the media team on the public portal was amazing",
76-
"topScoringIntent": {
77-
"intent": "EmployeeFeedback",
78-
"score": 0.9616192
79-
},
80-
"intents": [
81-
{
82-
"intent": "EmployeeFeedback",
83-
"score": 0.9616192
84-
},
85-
{
86-
"intent": "None",
87-
"score": 0.09347677
75+
"query": "Deliver 2 of the best cheese pizzas ever!!!",
76+
"prediction": {
77+
"topIntent": "OrderPizza",
78+
"intents": {
79+
"OrderPizza": {
80+
"score": 0.4659952
81+
},
82+
"None": {
83+
"score": 0.16901511
84+
},
85+
"Confirm": {
86+
"score": 0.00421415
87+
},
88+
"Greeting": {
89+
"score": 0.00109914376
90+
}
91+
},
92+
"entities": {
93+
"number": [
94+
2
95+
],
96+
"$instance": {
97+
"number": [
98+
{
99+
"type": "builtin.number",
100+
"text": "2",
101+
"startIndex": 8,
102+
"length": 1,
103+
"modelTypeId": 2,
104+
"modelType": "Prebuilt Entity Extractor",
105+
"recognitionSources": [
106+
"model"
107+
]
108+
}
109+
]
110+
}
111+
},
112+
"sentiment": {
113+
"label": "positive",
114+
"score": 0.861665964
115+
}
88116
}
89-
],
90-
"entities": [
91-
{
92-
"entity": "jill jones",
93-
"type": "builtin.personName",
94-
"startIndex": 0,
95-
"endIndex": 9
96-
}
97-
],
98-
"sentimentAnalysis": {
99-
"label": "positive",
100-
"score": 0.8694164
101-
}
102117
}
103118
```
104119

105120
The sentimentAnalysis is positive with a score of 86%.
106121

107-
Try another utterance by removing the value for `q` in the address bar of the browser: `William Jones did a terrible job presenting his ideas.` The sentiment score indicates a negative sentiment by returning a low score `0.18597582`.
108-
109122
## Clean up resources
110123

111124
[!INCLUDE [LUIS How to clean up resources](../../../includes/cognitive-services-luis-tutorial-how-to-clean-up-resources.md)]

0 commit comments

Comments
 (0)