Skip to content

Commit a10d99d

Browse files
committed
Changed sections
1 parent 43e30a5 commit a10d99d

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

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

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,11 @@ curl -i -X POST https://<your-language-resource-endpoint>/language/analyze-text/
122122
{
123123
"kind": "AbstractiveSummarization",
124124
"taskName": "Text Abstractive Summarization Task 1",
125-
"parameters": {
126-
"summaryLength": "short"
127-
}
128125
}
129126
]
130127
}
131128
'
132129
```
133-
If you don't specify `summaryLength`, the model determines the summary length.
134-
135-
### Using the summaryLength parameter
136-
For the `summaryLength` parameter, three values are accepted:
137-
* oneSentence: Generates a summary of mostly 1 sentence, with around 80 tokens.
138-
* short: Generates a summary of mostly 2-3 sentences, with around 120 tokens.
139-
* medium: Generates a summary of mostly 4-6 sentences, with around 170 tokens.
140-
* long: Generates a summary of mostly over 7 sentences, with around 210 tokens.
141130

142131
2. Make the following changes in the command where needed:
143132
- Replace the value `your-language-resource-key` with your key.
@@ -260,22 +249,29 @@ curl -i -X POST https://<your-language-resource-endpoint>/language/analyze-text/
260249
"kind": "ExtractiveSummarization",
261250
"taskName": "Query_based Extractive Summarization",
262251
"parameters": {
263-
"query": "XYZ-code",
264-
"sentenceCount": 3
252+
"query": "XYZ-code"
265253
}
266254
}
267255
]
268256
}
269257
'
270258
```
271259

272-
### Using the summaryLength parameter
260+
### Summary length control
261+
262+
#### Using the summaryLength parameter in abstractive summarization
263+
264+
If you don't specify `summaryLength`, the model determines the summary length.
265+
273266
For the `summaryLength` parameter, three values are accepted:
274267
* oneSentence: Generates a summary of mostly 1 sentence, with around 80 tokens.
275268
* short: Generates a summary of mostly 2-3 sentences, with around 120 tokens.
276269
* medium: Generates a summary of mostly 4-6 sentences, with around 170 tokens.
277270
* long: Generates a summary of mostly over 7 sentences, with around 210 tokens.
278271

272+
#### Using the sentenceCount parameter in extractive summarization
273+
For the `sentenceCount` parameter (extractive summarization only), you can input a value 1-20 to indicate the desired number of output sentences.
274+
279275
## Service and data limits
280276

281277
[!INCLUDE [service limits article](../../includes/service-limits-link.md)]

0 commit comments

Comments
 (0)