Skip to content

Commit b7869fe

Browse files
authored
Merge pull request #191935 from aahill/offset-length
offset and length information
2 parents bc45053 + 2cc6ad2 commit b7869fe

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

articles/cognitive-services/language-service/text-summarization/how-to/call-api.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: language-service
1010
ms.topic: how-to
11-
ms.date: 03/01/2022
11+
ms.date: 03/16/2022
1212
ms.author: aahi
1313
ms.custom: language-service-summarization, ignite-fall-2021
1414
---
@@ -37,7 +37,11 @@ Extractive summarization returns a rank score as a part of the system response a
3737

3838
There is another feature in Azure Cognitive Service for Language, [key phrases extraction](./../../key-phrase-extraction/how-to/call-api.md), that can extract key information. When deciding between key phrase extraction and extractive summarization, consider the following:
3939
* key phrase extraction returns phrases while extractive summarization returns sentences
40-
* extractive summarization returns sentences together with a rank score. Top ranked sentences will be returned per request
40+
* extractive summarization returns sentences together with a rank score, and. Top ranked sentences will be returned per request
41+
* extractive summarization also returns the following positional information:
42+
* offset: The start position of each extracted sentence, and
43+
* Length: is the length of each extracted sentence.
44+
4145

4246
## Determine how to process the data (optional)
4347

@@ -83,7 +87,6 @@ Using the above example, the API might return the following summarized sentences
8387

8488
*"At the intersection of all three, there’s magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better."*
8589

86-
8790
## Service and data limits
8891

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

articles/cognitive-services/language-service/text-summarization/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: language-service
1010
ms.topic: overview
11-
ms.date: 03/01/2022
11+
ms.date: 03/16/2022
1212
ms.author: aahi
1313
ms.custom: language-service-summarization, ignite-fall-2021
1414
---
@@ -40,6 +40,7 @@ Text summarization supports the following features:
4040
* **Extracted sentences**: These sentences collectively convey the main idea of the document. They’re original sentences extracted from the input document’s content.
4141
* **Rank score**: The rank score indicates how relevant a sentence is to a document's main topic. Text summarization ranks extracted sentences, and you can determine whether they're returned in the order they appear, or according to their rank.
4242
* **Maximum sentences**: Determine the maximum number of sentences to be returned. For example, if you request a three-sentence summary Text summarization will return the three highest scored sentences.
43+
* **Positional information**: The start position and length of extracted sentences.
4344

4445
## Get started with text summarization
4546

0 commit comments

Comments
 (0)