MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.2k stars 21.35k forks source link

Character limit 5120 instead of 5000 #25345

Closed jayendranarumugam closed 5 years ago

jayendranarumugam commented 5 years ago

As per the documentation the limit for calling the TextAnalyticsAPI is 5000 character but when I tried with Dotnet SDK (TextAnalyticsClientExtensions) with a huge file I'm getting the error like "A document within the request was too large to be processed. Limit document size to: 5120 characters." So which Is the correct limit 5000 or 5120 ?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

RohitMungi-MSFT commented 5 years ago

@jayendranarumugam Thanks for the feedback. We are investigating into the issue and will update you shortly.

RohitMungi-MSFT commented 5 years ago

@jayendranarumugan Thanks for the interesting observation. As per the documentation the character limit is subject to character limit as measured by StringInfo.LengthInTextElements. Also I think the character classification is based on the version of .NET framework, so it might return a different result. Could you please confirm the version and we can get the limits reviewed by product team if there is a change.

jayendranarumugam commented 5 years ago

Hi @RohitMungi-MSFT , I'm using DotNetFramework version 4.6.1. Let me know if you need any information further

RohitMungi-MSFT commented 5 years ago

@aahill Could you please review the character limit for calling the TextAnalyticsAPI and update it if required?

aahill commented 5 years ago

Thanks for reaching out @jayendranarumugam, I reached out to the team and you are correct that the limit is 5120 characters. I'll update the documentation, and have it live soon.

Thanks again!

please-close