python/example_code/comprehend/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Comprehend.
<!--custom.overview.start--> <!--custom.overview.end-->Amazon Comprehend uses natural language processing (NLP) to extract insights about the content of documents without the need of any special preprocessing.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python comprehend_detect.py
This example shows you how to use Amazon Comprehend to detect entities in text extracted by Amazon Textract from an image that is stored in Amazon S3.
<!--custom.scenario_prereqs.cross_TextractComprehendDetectEntities.start--> <!--custom.scenario_prereqs.cross_TextractComprehendDetectEntities.end--> <!--custom.scenarios.cross_TextractComprehendDetectEntities.start--> <!--custom.scenarios.cross_TextractComprehendDetectEntities.end-->This example shows you how to do the following:
Start the example by running the following at a command prompt:
python comprehend_topic_modeler.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python comprehend_classifier.py
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0