Skip to content
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
70f9448
patch now 3
yuantao-wang Jun 16, 2022
4644f56
patch now 4
yuantao-wang Jun 16, 2022
3ca0615
patch now 5
yuantao-wang Jun 16, 2022
43b1304
test encoding
yuantao-wang Jun 18, 2022
bcf61ff
test encoding
yuantao-wang Jun 18, 2022
3243f68
doc abs req
yuantao-wang Jun 19, 2022
b453227
text sum
yuantao-wang Jun 20, 2022
611db78
Merge branch 'Azure:main' into dev-sum
wangyuantao Jun 20, 2022
8a55026
conv
yuantao-wang Jun 20, 2022
516e8ac
Merge branches 'dev-sum' and 'dev-sum' of https://github.com/wangyuan…
yuantao-wang Jun 20, 2022
72f9e08
example
yuantao-wang Jun 20, 2022
88e1206
BOM
yuantao-wang Jun 20, 2022
3f0df22
revert
yuantao-wang Jun 20, 2022
44c6640
add timing
yuantao-wang Jun 21, 2022
f91b5af
add missing parent
yuantao-wang Jun 21, 2022
bcbf4b8
Merge branch 'Azure:main' into dev-sum
wangyuantao Jun 21, 2022
f6371d0
custom api
yuantao-wang Jun 22, 2022
8cf5149
Merge branch 'dev-sum' of https://github.com/wangyuantao/azure-rest-a…
yuantao-wang Jun 22, 2022
3e74437
Merge branch 'Azure:main' into dev-sum
wangyuantao Jun 22, 2022
7170e1b
more descriptions
yuantao-wang Jun 22, 2022
b48b6a1
add more required fields
yuantao-wang Jun 22, 2022
3864af3
add custom task and result
yuantao-wang Jun 23, 2022
7e78508
add more description to summary controls
yuantao-wang Jun 24, 2022
7a8a1db
Merge branch 'Azure:main' into dev-sum
wangyuantao Jul 2, 2022
8712145
fix base class bug, add lab features, ext phrase c
yuantao-wang Jul 2, 2022
e6966b5
Merge branch 'dev-sum' of https://github.com/wangyuantao/azure-rest-a…
yuantao-wang Jul 2, 2022
61308d8
Merge branch 'Azure:main' into dev-sum
wangyuantao Jul 7, 2022
a3f90aa
Merge branch 'Azure:main' into dev-sum
wangyuantao Jul 8, 2022
55e5682
add CustomAbstractiveSummarizationLROResults
yuantao-wang Jul 8, 2022
2886785
add examples
yuantao-wang Jul 10, 2022
1377712
Merge branch 'Azure:main' into dev-sum
wangyuantao Jul 17, 2022
24c7708
auth example
yuantao-wang Jul 17, 2022
e2bcb2f
Merge branch 'dev-sum' of https://github.com/wangyuantao/azure-rest-a…
yuantao-wang Jul 17, 2022
9eef454
remove dup
yuantao-wang Jul 17, 2022
01f09c5
require storage
yuantao-wang Jul 17, 2022
9569056
Merge branch 'Azure:main' into dev-sum
wangyuantao Jul 22, 2022
2b0b6b0
remove invalid example, rename item id
yuantao-wang Jul 22, 2022
4d55bc0
Merge branch 'dev-sum' of https://github.com/wangyuantao/azure-rest-a…
yuantao-wang Jul 22, 2022
42112ec
fix example
yuantao-wang Jul 25, 2022
0f228cf
add more description
yuantao-wang Jul 25, 2022
a2f471c
Merge branch 'Azure:main' into dev-sum
wangyuantao Jul 28, 2022
15369e6
fix invalid char in example, unify enum value
yuantao-wang Jul 28, 2022
bb0e942
Merge branch 'dev-sum' of https://github.com/wangyuantao/azure-rest-a…
yuantao-wang Jul 28, 2022
82146cf
Merge branch 'Azure:main' into dev-sum
wangyuantao Aug 1, 2022
30e3721
remove customization
yuantao-wang Aug 1, 2022
003336e
fix example
yuantao-wang Aug 1, 2022
30d5f13
revert ext sum, denorm conv
yuantao-wang Aug 2, 2022
fbafd73
fix typo
yuantao-wang Aug 2, 2022
473298b
10
yuantao-wang Aug 2, 2022
b0e79fa
spec
yuantao-wang Aug 2, 2022
5a63bbf
revert
yuantao-wang Aug 2, 2022
262da05
remove lab features, rename timing, narrative
yuantao-wang Aug 3, 2022
dbc5ecc
fix examples
yuantao-wang Aug 3, 2022
07fc9c6
merge upstream
yuantao-wang Aug 3, 2022
e711b5d
Revert "merge upstream"
yuantao-wang Aug 3, 2022
74fa030
fetch upstream
yuantao-wang Aug 3, 2022
46a84ec
merge conflict
yuantao-wang Aug 3, 2022
55c6fd3
Merge branch 'Azure:main' into dev-sum
wangyuantao Aug 4, 2022
6d108c8
common ver
yuantao-wang Aug 4, 2022
f34d3fc
Merge branch 'dev-sum' of https://github.com/wangyuantao/azure-rest-a…
yuantao-wang Aug 4, 2022
42e0b93
Merge branch 'Azure:main' into dev-sum
wangyuantao Aug 8, 2022
718a8b4
get 07-01 back to readme
yuantao-wang Aug 8, 2022
e33e14b
Merge branch 'Azure:main' into dev-sum
wangyuantao Aug 10, 2022
6ae1bc8
revert changes to extractive summarization
yuantao-wang Aug 10, 2022
978be57
prettier
yuantao-wang Aug 11, 2022
d4029b0
add word
yuantao-wang Aug 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Microsoft Cognitive Language Service - Analyze Conversations",
"description": "The language service conversations API is a suite of natural language processing (NLP) skills that can be used to analyze structured conversations (textual or spoken). The synchronous API in this suite accepts a request and mediates among multiple language projects, such as LUIS Generally Available, Question Answering, Conversational Language Understanding, and then calls the best candidate service to handle the request. At last, it returns a response with the candidate service's response as a payload.\n\n In some cases, this API needs to forward requests and responses between the caller and an upstream service. The asynchronous APIs in this suite enable tasks like Conversation Summarization and Conversational PII detection.",
"version": "2022-07-01-preview"
"version": "2022-10-01-preview"
},
"securityDefinitions": {
"apim_key": {
Expand Down Expand Up @@ -132,6 +132,9 @@
},
"Successful Conversation Summarization Analysis Job Request": {
"$ref": "./examples/conversations/SuccessfulConversationSummarySubmit.json"
},
"Successful Conversation Summarization Task Submit": {
"$ref": "./examples/conversations/SuccessfulConversationSummarizationTaskSubmit.json"
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -176,6 +179,9 @@
},
"Successful Get Text Conversation Analysis Job Status Request": {
"$ref": "./examples/conversations/SuccessfulConversationSummarizationTaskStatusRequest.json"
},
"Successful Get Conversation Summarization Result": {
"$ref": "./examples/conversations/SuccessfulConversationSummarizationTaskResult.json"
}
}
}
Expand Down Expand Up @@ -1732,7 +1738,7 @@
"properties": {
"itn": {
"type": "string",
"description": "Inverse Text Normalization representation of input. The inverse-text-normalized form is the recognized text from Microsofts Speech to Text API, with phone numbers, numbers, abbreviations, and other transformations applied."
"description": "Inverse Text Normalization representation of input. The inverse-text-normalized form is the recognized text from Microsoft's Speech to Text API, with phone numbers, numbers, abbreviations, and other transformations applied."
},
"maskedItn": {
"type": "string",
Expand All @@ -1752,6 +1758,10 @@
"items": {
"$ref": "#/definitions/WordLevelTiming"
}
},
"audioTiming": {
"description": "Conversation item level audio timing. This still can help on AI quality if word level audio timings are not available.",
"$ref": "#/definitions/AudioTiming"
}
}
},
Expand Down Expand Up @@ -2004,18 +2014,41 @@
"type": "string",
"enum": [
"issue",
"resolution"
"resolution",
"chapterTitle",
"generic"
],
"x-ms-enum": {
"name": "SummaryAspect",
"modelAsString": true
"modelAsString": true,
"values": [
{
"value": "issue",
"description": "A summary of issues in transcripts of web chats and service call transcripts between customer-service agents, and your customers."
},
{
"value": "resolution",
"description": "A summary of resolutions in transcripts of web chats and service call transcripts between customer-service agents, and your customers."
},
{
"value": "chapterTitle",
"description": "A chapter title of any conversation. It is usually one phrase or several phrases naturally combined together. Long conversation tends to have more chapters. The chapter boundary can be found from the summary context."
},
{
"value": "generic",
"description": "A generic summary of any conversation."
}
]
}
}
}
},
"allOf": [
{
"$ref": "common.json#/definitions/PreBuiltTaskParameters"
},
{
"$ref": "common.json#/definitions/AbstractiveSummarizationTaskParametersBase"
}
]
},
Expand Down Expand Up @@ -2089,6 +2122,13 @@
},
"text": {
"type": "string"
},
"contexts": {
"type": "array",
"description": "The context list of the summary.",
"items": {
"$ref": "#/definitions/ItemizedSummaryContext"
}
}
},
"required": [
Expand Down Expand Up @@ -2251,6 +2291,24 @@
"$ref": "common.json#/definitions/RequestStatistics"
}
]
},
"ItemizedSummaryContext": {
"type": "object",
"description": "The context of the summary with conversation item id.",
"required": [
"conversationItemId"
],
"properties": {
"conversationItemId": {
"type": "string",
"description": "Reference to the id of ConversationItem."
}
},
"allOf": [
{
"$ref": "common.json#/definitions/SummaryContext"
}
]
}
},
"parameters": {
Expand Down
154 changes: 141 additions & 13 deletions dev/cognitiveservices/data-plane/Language/analyzetext.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Microsoft Cognitive Language Service - Text Analysis",
"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>.0",
"version": "2022-07-01-preview"
"version": "2022-10-01-preview"
},
"securityDefinitions": {
"apim_key": {
Expand Down Expand Up @@ -88,9 +88,6 @@
},
"Successful Sentiment Analysis Request": {
"$ref": "./examples/text/SuccessfulSentimentAnalysisRequest.json"
},
"Succesful Healthcare Request": {

@wangyuantao wangyuantao Aug 2, 2022

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a bug of this example on main branch now and the team is fixing it.

"$ref": "./examples/text/SuccessfulHealthcareRequest.json"
}
}
}
Expand Down Expand Up @@ -139,6 +136,9 @@
"x-ms-examples": {
"Successful Submit Analysis Job Request": {
"$ref": "./examples/text/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json"
},
"Successful Submit Abstractive Summarization Task": {
"$ref": "./examples/text/SuccessfulAbstractiveSummarizationTaskSubmit.json"
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -186,6 +186,9 @@
"x-ms-examples": {
"Successful Get Text Analysis Job Status Request": {
"$ref": "./examples/text/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json"
},
"Successful Get Abstractive Summarization Result": {
"$ref": "./examples/text/SuccessfulAbstractiveSummarizationTaskResult.json"
}
}
}
Expand Down Expand Up @@ -261,7 +264,8 @@
"ExtractiveSummarization",
"CustomEntityRecognition",
"CustomSingleLabelClassification",
"CustomMultiLabelClassification"
"CustomMultiLabelClassification",
"AbstractiveSummarization"
],
"x-ms-enum": {
"name": "AnalyzeTextLROTaskKind",
Expand Down Expand Up @@ -297,7 +301,8 @@
"ExtractiveSummarizationLROResults",
"CustomEntityRecognitionLROResults",
"CustomSingleLabelClassificationLROResults",
"CustomMultiLabelClassificationLROResults"
"CustomMultiLabelClassificationLROResults",
"AbstractiveSummarizationLROResults"
],
"x-ms-enum": {
"name": "AnalyzeTextLROResultsKind",
Expand Down Expand Up @@ -1960,20 +1965,16 @@
"type": "object",
"description": "Supported parameters for an Extractive Summarization task.",
"properties": {
"sentenceCount": {
"type": "integer",
"default": 3
},
"sortBy": {
"$ref": "#/definitions/ExtractiveSummarizationSortingCriteria"
},
"stringIndexType": {
"$ref": "common.json#/definitions/StringIndexType"
Comment thread
wangyuantao marked this conversation as resolved.
}
},
"allOf": [
{
"$ref": "common.json#/definitions/PreBuiltTaskParameters"
},
{
"$ref": "common.json#/definitions/SummarizationTaskParametersBase"
}
]
},
Expand Down Expand Up @@ -2699,6 +2700,133 @@
"type": "string"
}
}
},
"AbstractiveSummarizationLROTask": {
"type": "object",
"description": "An object representing the task definition for an Abstractive Summarization task.",
"required": [
"parameters"
],
"properties": {
"parameters": {
"$ref": "#/definitions/AbstractiveSummarizationTaskParameters"
}
},
"allOf": [
{
"$ref": "#/definitions/AnalyzeTextLROTask"
}
],
"x-ms-discriminator-value": "AbstractiveSummarization"
},
"AbstractiveSummarizationTaskParameters": {
"type": "object",
"description": "Supported parameters for the pre-build Abstractive Summarization task.",
"allOf": [
{
"$ref": "common.json#/definitions/AbstractiveSummarizationTaskParametersBase"
},
{
"$ref": "common.json#/definitions/PreBuiltTaskParameters"
}
]
},
"AbstractiveSummarizationLROResults": {
"type": "object",
"description": "An object representing the results for an Abstractive Summarization task.",
"properties": {
"results": {
"$ref": "#/definitions/AbstractiveSummarizationResult"
}
},
"allOf": [
{
"$ref": "#/definitions/AnalyzeTextLROResult"
}
],
"required": [
"results"
],
"x-ms-discriminator-value": "AbstractiveSummarizationLROResults"
},
"AbstractiveSummarizationResultBase": {
"type": "object",
"description": "An object representing the summarization results of each document.",
"properties": {
"documents": {
"type": "array",
"description": "Response by document",
"items": {
"allOf": [
{
"$ref": "#/definitions/AbstractiveSummaryDocumentResult"
},
{
"$ref": "#/definitions/DocumentDetectedLanguage"
}
]
}
}
},
"required": [
"documents"
]
},
"AbstractiveSummarizationResult": {
"type": "object",
"description": "An object representing the pre-build summarization results of each document.",
"allOf": [
{
"$ref": "#/definitions/AbstractiveSummarizationResultBase"
},
{
"$ref": "common.json#/definitions/PreBuiltResult"
}
],
"required": [
"documents"
]
},
"AbstractiveSummaryDocumentResult": {
"type": "object",
"description": "An object representing the summarization result of a single document.",
"properties": {
"summaries": {
"type": "array",
"description": "A list of abstractive summaries.",
"items": {
"$ref": "#/definitions/AbstractiveSummary"
}
}
},
"allOf": [
{
"$ref": "#/definitions/DocumentResult"
}
],
"required": [
"summaries"
]
},
"AbstractiveSummary": {
"type": "object",
"description": "An object representing a single summary with context for given document.",
"properties": {
"text": {
"type": "string",
"description": "The text of the summary."
},
"contexts": {
Comment thread
wangyuantao marked this conversation as resolved.
"type": "array",
"description": "The context list of the summary.",
"items": {
"$ref": "common.json#/definitions/SummaryContext"
}
}
},
"required": [
"text"
]
}
},
"parameters": {}
Expand Down
Loading