batch_detect_syntax
¶
batch_detect_syntax(
text_list: CustomerInputStringList,
language_code: SyntaxLanguageCode,
*,
config_overrides: Optional[ComprehendClientConfig] = None,
) -> BatchDetectSyntaxResponse
Inspects the text of a batch of documents for the syntax and part of speech of the words in the document and returns information about them. For more information, see Syntax in the Comprehend Developer Guide.
Parameters:
-
text_list(CustomerInputStringList) –A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size for each document is 5 KB.
-
language_code(SyntaxLanguageCode) –The language of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
Raises:
-
BatchSizeLimitExceededException–The number of documents in the request exceeds the limit of 25. Try your request again with fewer documents.
-
InternalServerException–An internal server error occurred. Retry your request.
-
InvalidRequestException–The request is invalid.
-
TextSizeLimitExceededException–The size of the input text exceeds the limit. Use a smaller document.
-
UnsupportedLanguageException–Amazon Comprehend can't process the language of the input text. For a list of supported languages, Supported languages in the Comprehend Developer Guide.
-
UnknownServiceError–The service returned an error code this client does not model.