Skip to content

Commit 9b6bbdd

Browse files
committed
Initial Commit
1 parent 1482f45 commit 9b6bbdd

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

articles/cognitive-services/language-service/summarization/how-to/document-summarization.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,16 @@ curl -i -X POST https://<your-language-resource-endpoint>/language/analyze-text/
112112
"tasks": [
113113
{
114114
"kind": "AbstractiveSummarization",
115-
"taskName": "Document Abstractive Summarization Task 1"
115+
"taskName": "Document Abstractive Summarization Task 1",
116+
"parameters": {
117+
"sentenceCount": 1
118+
}
116119
}
117120
]
118-
}
119121
'
120122
```
123+
If you do not specify `sentenceCount`, the model will determine the summary length. Note that `sentenceCount` is the approximation of the sentence count of the output summary, range 1 to 20.
124+
121125
2. Make the following changes in the command where needed:
122126
- Replace the value `your-language-resource-key` with your key.
123127
- Replace the first part of the request URL `your-language-resource-endpoint` with your endpoint URL.

articles/cognitive-services/language-service/summarization/includes/quickstarts/python-sdk.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,21 @@ with client:
202202
},
203203
"tasks": [
204204
{
205-
"taskName": "analyze 1",
206-
"kind": "ConversationalSummarizationTask",
207-
"parameters": {
208-
"summaryAspects": ["Issue, Resolution"]
209-
}
205+
"taskName": "Conversation Task 1",
206+
"kind": "ConversationalSummarizationTask",
207+
"parameters": {
208+
"summaryAspects": ["issue"]
209+
}
210+
},
211+
{
212+
"taskName": "Conversation Task 2",
213+
"kind": "ConversationalSummarizationTask",
214+
"parameters": {
215+
"summaryAspects": ["resolution"],
216+
"sentenceCount": 1
217+
}
210218
}
211219
]
212-
}
213-
)
214220

215221
# view result
216222
result = poller.result()

articles/cognitive-services/language-service/summarization/includes/quickstarts/rest-api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ curl -i -X POST https://<your-language-resource-endpoint>/language/analyze-conve
289289
}
290290
'
291291
```
292+
Only the `resolution` aspect supports sentenceCount. If you do not specify the `sentenceCount` parameter, the model will determine the summary's length. Note that `sentenceCount` is just the approximation of sentence count of output summary, range 1 to 7.
293+
292294
2. Make the following changes in the command where needed:
293295
- Replace the value `your-language-resource-key` with your key.
294296
- Replace the first part of the request URL `your-language-resource-endpoint` with your endpoint URL.

0 commit comments

Comments
 (0)