Share via

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.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,836 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

    Was this answer helpful?

    0 comments No comments

Your answer

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