Skip to content

Commit dad16c7

Browse files
Add the missing description to summarization parameter (#20809)
* add the missing description * fix wording * fix prettier * remove endpoint format uri * fix lintdiff * add format uri back * x-ms-parameterized-host hostTemplate consistent * fix prettier * fix typo * fix model validation * remove dup Language * prettier more * add more custom words like Telangana * fix typo of documentKind * remove dup def of Endpoint in QnA gen * GeneratedQAs is [] not [][] * revert custom words * remove format uri again * add custom words back * fix documentKind in QnA examples * test security check * fix QnA sample * test security * revert security * consistent security * delete QnA generate * azure-sdk-for-net-track2 * fix more validation errors * revert authoring * fix authoring * fix authoring * add 200 back to export qna authoring * revert endpoint to Endpoint * fix example of qna authoring * prettier revert * fix api version * revert authoring Co-authored-by: Yuantao Wang <[email protected]>
1 parent fd7a96f commit dad16c7

11 files changed

+39
-22
lines changed

dev/cognitiveservices/data-plane/Language/analyzeconversations-authoring.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"swagger": "2.0",
33
"info": {
44
"title": "Microsoft Cognitive Language Service - Analyze Conversations Authoring",
5-
"version": "2022-07-01-preview",
5+
"version": "2022-10-01-preview",
66
"description": "The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview\">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>."
77
},
88
"securityDefinitions": {

dev/cognitiveservices/data-plane/Language/analyzeconversations.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,7 @@
16511651
]
16521652
},
16531653
"ConversationSentimentResult": {
1654+
"type": "object",
16541655
"description": "The result from sentiment analysis operation for each conversation item.",
16551656
"required": [
16561657
"conversationItems"
@@ -1721,19 +1722,23 @@
17211722
"properties": {
17221723
"completed": {
17231724
"description": "Count of tasks completed successfully.",
1724-
"type": "integer"
1725+
"type": "integer",
1726+
"format": "int32"
17251727
},
17261728
"failed": {
17271729
"description": "Count of tasks that failed.",
1728-
"type": "integer"
1730+
"type": "integer",
1731+
"format": "int32"
17291732
},
17301733
"inProgress": {
17311734
"description": "Count of tasks in progress currently.",
1732-
"type": "integer"
1735+
"type": "integer",
1736+
"format": "int32"
17331737
},
17341738
"total": {
17351739
"description": "Total count of tasks submitted as part of the job.",
1736-
"type": "integer"
1740+
"type": "integer",
1741+
"format": "int32"
17371742
},
17381743
"items": {
17391744
"description": "List of results from tasks (if available).",

dev/cognitiveservices/data-plane/Language/analyzetext-authoring.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"swagger": "2.0",
33
"info": {
44
"title": "Microsoft Cognitive Language Service - Analyze Text Authoring",
5-
"version": "2022-07-01-preview",
5+
"version": "2022-10-01-preview",
66
"description": "The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview\">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>."
77
},
88
"securityDefinitions": {

dev/cognitiveservices/data-plane/Language/analyzetext.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@
505505
"x-ms-discriminator-value": "SentimentAnalysis"
506506
},
507507
"AnalyzeTextDynamicClassificationInput": {
508+
"type": "object",
508509
"properties": {
509510
"analysisInput": {
510511
"$ref": "#/definitions/MultiLanguageAnalysisInput"
@@ -916,7 +917,7 @@
916917
"HealthcareProfession",
917918
"Diagnosis",
918919
"SymptomOrSign",
919-
"ConditionalQualifier",
920+
"ConditionQualifier",
920921
"MedicationClass",
921922
"MedicationName",
922923
"Dosage",

dev/cognitiveservices/data-plane/Language/common.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
"description": "The error object.",
1717
"$ref": "#/definitions/Error"
1818
}
19-
},
20-
"required": [
21-
"error"
22-
]
19+
}
2320
},
2421
"Error": {
2522
"type": "object",
@@ -805,7 +802,8 @@
805802
"properties": {
806803
"sentenceCount": {
807804
"type": "integer",
808-
"format": "int32"
805+
"format": "int32",
806+
"description": "It controls the approximate number of sentences in the output summaries."
809807
},
810808
"stringIndexType": {
811809
"$ref": "#/definitions/StringIndexType"
@@ -1545,7 +1543,6 @@
15451543
"x-ms-parameter-location": "client",
15461544
"required": true,
15471545
"type": "string",
1548-
"format": "uri",
15491546
"in": "path",
15501547
"x-ms-skip-url-encoding": true
15511548
},

dev/cognitiveservices/data-plane/Language/examples/conversations/SuccessfulConversationSentimentSubmit.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"participantId": "1",
1818
"id": "1",
1919
"text": "I like the service. I do not like the food",
20-
"lexical": "i like the service i do not like the food"
20+
"lexical": "i like the service i do not like the food",
21+
"itn": "",
22+
"maskedItn": ""
2123
}
2224
]
2325
}

dev/cognitiveservices/data-plane/Language/examples/conversations/SuccessfulConversationSentimentTaskStatusRequest.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"200": {
1010
"headers": {},
1111
"body": {
12-
"createdDateTime": "2022-10-01T8:00:25Z",
12+
"createdDateTime": "2022-04-01T15:00:45Z",
1313
"displayName": "Sentiment Analysis from a call center conversation",
14-
"expirationDateTime": "2022-10-03T8:0:25Z",
14+
"expirationDateTime": "2022-04-01T15:00:45Z",
1515
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18",
16-
"lastUpdatedDateTime": "2022-10-01T8:00:50Z",
16+
"lastUpdatedDateTime": "2022-04-01T15:00:45Z",
1717
"status": "succeeded",
1818
"tasks": {
1919
"completed": 1,
@@ -24,7 +24,7 @@
2424
{
2525
"kind": "ConversationalSentimentResults",
2626
"taskName": "Conversation Sentiment",
27-
"lastUpdateDateTime": "2022-10-01T8:00:50Z",
27+
"lastUpdateDateTime": "2022-04-01T15:00:45Z",
2828
"status": "succeeded",
2929
"results": {
3030
"conversations": [

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulProjectSubmitExportJob.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"Ocp-Apim-Subscription-Key": "{API key}",
55
"Content-Type": "application/json",
6-
"api-version": "2022-07-01-preview",
6+
"api-version": "2022-10-01-preview",
77
"projectName": "proj1",
88
"body": {
99
"exportAssetTypes": [
@@ -13,6 +13,18 @@
1313
}
1414
},
1515
"responses": {
16+
"200": {
17+
"headers": {},
18+
"body": {
19+
"errors": [],
20+
"createdDateTime": "2021-05-01T17:21:14Z",
21+
"expirationDateTime": "2021-05-01T17:21:14Z",
22+
"jobId": "635c2741-15c4-4c2c-9f78-bfd30b6b2a4a",
23+
"lastUpdatedDateTime": "2021-05-01T17:21:14Z",
24+
"status": "succeeded",
25+
"resultUrl": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/export/jobs/job1/result?api-version=2022-10-01-preview"
26+
}
27+
},
1628
"202": {
1729
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
1830
"headers": {

dev/cognitiveservices/data-plane/Language/examples/text/SuccessfulEntityRecognitionRequest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"confidenceScore": 0.99,
6464
"resolutions": [
6565
{
66-
"resolutionKind": "DateTime",
66+
"resolutionKind": "DateTimeResolution",
6767
"dateTimeSubKind": "Date",
6868
"timex": "1975-04-04",
6969
"value": "1975-04-04"

dev/cognitiveservices/data-plane/Language/questionanswering-authoring.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Microsoft Cognitive Language Service - Question Answering - Authoring",
55
"description": "The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\">https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview</a>.",
6-
"version": "2022-07-01-preview"
6+
"version": "2022-10-01-preview"
77
},
88
"securityDefinitions": {
99
"AADToken": {

dev/cognitiveservices/data-plane/Language/questionanswering.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Microsoft Cognitive Language Service - Question Answering",
55
"description": "The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\">https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview</a>.",
6-
"version": "2022-07-01-preview"
6+
"version": "2022-10-01-preview"
77
},
88
"securityDefinitions": {
99
"AADToken": {

0 commit comments

Comments
 (0)