Examples using the AWS SDK for Python ie. Boto3 to interact with AWS Comprehend. Specifically the examples work with the real-time analysis capabilities of comprehend.
Real-time analysis capabilities use a pre-built model that comprehend offers. There is no training on your data required.
How the scripts authentication with comprehend / AWS via. Boto3 is not covered in this repository. To understand the authentication options reference the repository Boto3 Authentication Options
Additonal reference material is Boto3 documentation for comprehend and Amazon Comprehend API Reference