python/cross_service/textract_comprehend_notebook/README.md
Shows how to use the AWS SDK for Python (Boto3) in a Jupyter notebook to detect entities in text that is extracted from an image. This example uses Amazon Textract to extract text from an image stored in Amazon Simple Storage Service (Amazon S3) and Amazon Comprehend to detect entities in the extracted text.
For this example, you need the following resources:
Create these resources by using the AWS Management Console or the AWS SDK for Python.
This example is a Jupyter notebook and must be run in an environment that can host notebooks. For instructions on how to run the example using Amazon SageMaker, see the directions in TextractAndComprehendNotebook.ipynb.
After running the example, remember to delete any resources you are no longer using, including your Amazon S3 bucket.
To run the unit tests:
test-textract-comprehend.py Python file, with the values that you want to use.python test-textract-comprehend.py.Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0