Skip to content

Commit b4afd76

Browse files
Merge pull request #276043 from jboback/summarization-sample-52224
Abstractive sample fix
2 parents 35e6a90 + a8d7d3f commit b4afd76

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,21 @@ curl -i -X POST https://<your-language-resource-endpoint>/language/analyze-text/
123123
"kind": "AbstractiveSummarization",
124124
"taskName": "Text Abstractive Summarization Task 1",
125125
"parameters": {
126-
"summaryLength": short
126+
"summaryLength": "short"
127127
}
128128
}
129129
]
130130
}
131131
'
132132
```
133-
If you don't specify `sentenceCount`, the model determines the summary length. Note that `sentenceCount` is the approximation of the sentence count of the output summary, range 1 to 20. Using sentenceCount is not recommended for abstractive summarization.
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.
134141

135142
2. Make the following changes in the command where needed:
136143
- Replace the value `your-language-resource-key` with your key.
@@ -255,7 +262,7 @@ curl -i -X POST https://<your-language-resource-endpoint>/language/analyze-text/
255262
'
256263
```
257264

258-
### Using the summaryParameter
265+
### Using the summaryLength parameter
259266
For the `summaryLength` parameter, three values are accepted:
260267
* oneSentence: Generates a summary of mostly 1 sentence, with around 80 tokens.
261268
* short: Generates a summary of mostly 2-3 sentences, with around 120 tokens.

0 commit comments

Comments
 (0)