AWS comprehend plugin error- TextSizeLimitExceededException

pranauv
pranauv Registered Posts: 5 ✭✭✭

Hi,

We are trying to use AWS comprehend plugin, where we have setup the plugin preset as well,
When trying to use the plugin for a text dataset we are getting an error like below

(Error in Python process: At line 101: <class 'botocore.errorfactory.TextSizeLimitExceededException'>: An error occurred (TextSizeLimitExceededException) when calling the BatchDetectKeyPhrases operation: Input text size exceeds limit. Max length of request text allowed is 5000 bytes while in this request the text size is 5715 bytes)


Is there any option to increase the TextSizeLimit?

Best Answer

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Answer ✓

    Hi,

    This error is coming from a hard limit set on the AWS API.

    Can you try reducing the "Batch size" parameter in the plugin preset? The default is 10, you can reduce it to 5, or even 1 to disable batching.

    Screenshot 2021-02-02 at 15.50.55.png

    Hope it helps,

    Alex

Setup Info
    Tags
      Help me…