Skip to content

Commit 064767c

Browse files
Merge pull request #225438 from jboback/SummarizationBugsJan2023
Initial Commit
2 parents 89c9dcc + 97e600f commit 064767c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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/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)