DocumentReaderConfig
¶
Used by
-
AsyncComprehendClient Operations -
ComprehendClient Operations
Source code in docs_src/capo_comprehend/types/document_reader_config.py
document_read_action
instance-attribute
¶
document_read_action: DocumentReadAction
This field defines the Amazon Textract API operation that Amazon Comprehend uses to extract text from PDF files and image files. Enter one of the following values:
-
TEXTRACT_DETECT_DOCUMENT_TEXT- The Amazon Comprehend service uses theDetectDocumentTextAPI operation. -
TEXTRACT_ANALYZE_DOCUMENT- The Amazon Comprehend service uses theAnalyzeDocumentAPI operation.
document_read_mode
instance-attribute
¶
document_read_mode: NotRequired[DocumentReadMode]
Determines the text extraction actions for PDF files. Enter one of the following values:
-
SERVICE_DEFAULT- use the Amazon Comprehend service defaults for PDF files. -
FORCE_DOCUMENT_READ_ACTION- Amazon Comprehend uses the Textract API specified by DocumentReadAction for all PDF files, including digital PDF files.
feature_types
instance-attribute
¶
feature_types: NotRequired[ListOfDocumentReadFeatureTypes]
Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:
-
TABLES- Returns additional information about any tables that are detected in the input document. -
FORMS- Returns additional information about any forms that are detected in the input document.