Return more than 20 sentences from Extractive Summarization cognitive service

Azure Customer 1 Reputation point
2022-02-23T10:29:25.263+00:00

Is it possible to return more than 20 sentences from Extractive Summarization cognitive services ?

When I try to return more than 20 sentences I get this error.

AggregateException: One or more errors occurred. (Job task parameter value 26 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max).

Is it actually possible to get more back or is this the limit?

And if so is it ok to run multiple calls to complete the text, or is that extremely inefficient / would no longer be an optimal result?

Thank you to anyone who might have any ideas.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,782 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,736 Reputation points
    2022-02-24T02:16:30.237+00:00

    @Azure Customer Thanks for the question. Currently the range is from 1 to 20. You can use the sentenceCount parameter to specify how many sentences will be returned, with 3 being the default. We have forwarded to product team to increase the sentence count more in the near future.

    https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/text-summarization/how-to/call-api

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.